From 11e11a51839529b17f70927524e086e90adf692d Mon Sep 17 00:00:00 2001
From: LR-20210131IOQH\Administrator <jackcold@163.com>
Date: 星期二, 10 八月 2021 15:31:19 +0800
Subject: [PATCH] 工资核对修改
---
zhengcaioa/zhengcaioa/Views/SalaryCheck/Employee.cshtml | 4
zhengcaioa/Services/HrSalaryService.cs | 217 +++++++++++++++++++++---------------
zhengcaioa/Model/HrSalary.cs | 12 +
zhengcaioa/zhengcaioa/Views/SalaryCheck/Edit.cshtml | 26 ++--
zhengcaioa/zhengcaioa/Views/SalaryCheck/SearchIndex.cshtml | 2
zhengcaioa/zhengcaioa/zhengcaioa.csproj.user | 2
zhengcaioa/zhengcaioa/Views/SalaryCheck/Appeal.cshtml | 8
zhengcaioa/zhengcaioa/Properties/PublishProfiles/FolderProfile.pubxml.user | 2
zhengcaioa/zhengcaioa/Views/SalaryCheck/Index.cshtml | 24 ++-
zhengcaioa/DTO/HrSalaryDTO.cs | 5
zhengcaioa/zhengcaioa/Controllers/HR/SalaryCheckController.cs | 20 +++
11 files changed, 198 insertions(+), 124 deletions(-)
diff --git a/zhengcaioa/DTO/HrSalaryDTO.cs b/zhengcaioa/DTO/HrSalaryDTO.cs
index 7438883..8aab32d 100644
--- a/zhengcaioa/DTO/HrSalaryDTO.cs
+++ b/zhengcaioa/DTO/HrSalaryDTO.cs
@@ -25,6 +25,9 @@
public decimal? Shebao { get; set; }
public decimal? Dianhuabutie { get; set; }
+
+ public string DianhuabutieChs { get; set; }
+
public decimal? Quanqinjiang { get; set; }
public decimal? Jiaotngbutie { get; set; }
public decimal? Jixiaoticheng { get; set; }
@@ -50,7 +53,7 @@
{
get
{
- return (Shebaokou ?? 0) + (Geshui ?? 0) + (Dianhuafei ?? 0) + (Queqin ?? 0) + (Fakuan ?? 0) + (Peichang ?? 0) + (Jiucuo ?? 0);
+ return (Shebaokou ?? 0) + (Geshui ?? 0) + (Dianhuafei ?? 0) + (Queqin ?? 0) + (Fakuan ?? 0) + (Peichang ?? 0)- (Jiucuo ?? 0);
}
}
diff --git a/zhengcaioa/Model/HrSalary.cs b/zhengcaioa/Model/HrSalary.cs
index b0bce30..2458ff1 100644
--- a/zhengcaioa/Model/HrSalary.cs
+++ b/zhengcaioa/Model/HrSalary.cs
@@ -49,11 +49,15 @@
public class HrSalaryAppeal
{
[Key]
- public int id { get; set; }
+ public string id { get; set; }
- public string salary_id { get; set; }
+ public string salary_id { get; set; }
public string reason { get; set; }
+
+ public int year { get; set; }
+
+ public int month { get; set; }
public decimal amount { get; set; }
@@ -70,5 +74,9 @@
public string chk_result { get; set; }
public string status { get; set; }
+
+ public string createrName { get; set; }
+ public string tittle { get; set; }
+ public string shenpi_status { get; set; }
}
}
diff --git a/zhengcaioa/Services/HrSalaryService.cs b/zhengcaioa/Services/HrSalaryService.cs
index 656f00c..7c06702 100644
--- a/zhengcaioa/Services/HrSalaryService.cs
+++ b/zhengcaioa/Services/HrSalaryService.cs
@@ -93,6 +93,11 @@
return resultEntity;
}
+ /// <summary>
+ /// 淇濆瓨宸ヨ祫鏍稿噯
+ /// </summary>
+ /// <param name="dto"></param>
+ /// <returns></returns>
public ResultEntity SaveCheckSalary(HrSalaryUpDTO dto)
{
ResultEntity resultEntity = new ResultEntity();
@@ -103,10 +108,13 @@
{
//鏇存柊鐢佃瘽璐圭敤鐘舵��
var sim = _context.SimCost.Where(c => c.bill_year == updatepltRole.Year && c.bill_month <= updatepltRole.Month && c.user_id == updatepltRole.Userid && c.status == "0").ToList();
- foreach(var item in sim)
+ if(sim!=null)
{
- item.status = "1";
- }
+ foreach (var item in sim)
+ {
+ item.status = "1";
+ }
+ }
var user = _context.PltUsers.Where(c => c.Id == updatepltRole.Userid).SingleOrDefault();
@@ -116,73 +124,35 @@
var sum_f = ((updatepltRole.Jibengongzi ?? 0) + (updatepltRole.Baomifei ?? 0) + (updatepltRole.Gongzuobutie ?? 0) +
(updatepltRole.Jiabangongzi ?? 0) + (updatepltRole.Shebao ?? 0) + (updatepltRole.Dianhuabutie ?? 0) +
(updatepltRole.Quanqinjiang ?? 0) + (updatepltRole.Jiaotngbutie ?? 0) + (updatepltRole.Jixiaoticheng ?? 0) +
- dto.Jiangjin + dto.Bufagongzi);
+ dto.Jiangjin + dto.Bufagongzi) + dto.Jiucuo; ;
updatepltRole.Peichang = dto.Peichang;
updatepltRole.Jiucuo = dto.Jiucuo;
- var sum_k= (updatepltRole.Shebaokou ?? 0) + (updatepltRole.Geshui ?? 0) + (updatepltRole.Dianhuafei ?? 0) +
- (updatepltRole.Queqin ?? 0) + (updatepltRole.Fakuan ?? 0) + dto.Peichang + dto.Jiucuo;
+ var sum_k = (updatepltRole.Shebaokou ?? 0) + (updatepltRole.Geshui ?? 0) + (updatepltRole.Dianhuafei ?? 0) +
+ (updatepltRole.Queqin ?? 0) + (updatepltRole.Fakuan ?? 0) + dto.Peichang;
//璁$畻棰勫彂宸ヨ祫
-
- //var lyear = updatepltRole.Year;
- //var lmonth = updatepltRole.Month-1;
- //if(lmonth==0)
- //{
- // lyear = lyear - 1;
- // lmonth = 12;
- //}
- //var sumyfhj = _context.HrSalaries.Where(c => c.Year == lyear && c.Month == lmonth && c.Userid == updatepltRole.Userid).SingleOrDefault();
-
- if(DateTime.Today> user.ShiyongDateEnd)
+ if (user.advancewages.HasValue && user.advancewages.Value>0)
{
- if(string.IsNullOrEmpty(user.BasicPrice))
+ var pc = user.advancewages.Value;
+ if (sum_f - sum_k > pc)
{
- updatepltRole.Daozhanggongzi = sum_f - sum_k;
- updatepltRole.Yufagongzi = 0;
+ updatepltRole.Daozhanggongzi = sum_f - sum_k;
}
else
{
- var pc = decimal.Parse(user.BasicPrice);
- if (sum_f - sum_k > pc)
- {
- updatepltRole.Daozhanggongzi = sum_f - sum_k;
- updatepltRole.Yufagongzi = 0;
- updatepltRole.Yufagongziheji = updatepltRole.Yufagongziheji - (sum_f - sum_k - pc);
- }
- else
- {
- updatepltRole.Daozhanggongzi = pc;
- updatepltRole.Yufagongzi = pc-(sum_f - sum_k);
- updatepltRole.Yufagongziheji = updatepltRole.Yufagongziheji + updatepltRole.Yufagongzi;
- }
- }
+ //棰勫彂
+ updatepltRole.Daozhanggongzi = pc;
+ updatepltRole.Yufagongzi = pc - (sum_f - sum_k);
+ updatepltRole.Yufagongziheji += updatepltRole.Yufagongzi;
+ }
+
}
else
{
- if (user.ShiyongPrice.HasValue)
- {
- var pc = user.ShiyongPrice.Value;
- if (sum_f - sum_k > pc)
- {
- updatepltRole.Daozhanggongzi = sum_f - sum_k;
- updatepltRole.Yufagongzi = 0;
- updatepltRole.Yufagongziheji = updatepltRole.Yufagongziheji - (sum_f - sum_k - pc);
- }
- else
- {
- updatepltRole.Daozhanggongzi = pc;
- updatepltRole.Yufagongzi = pc - (sum_f - sum_k);
- updatepltRole.Yufagongziheji = updatepltRole.Yufagongziheji + updatepltRole.Yufagongzi;
- }
- }
- else
- {
- updatepltRole.Daozhanggongzi = sum_f - sum_k;
- updatepltRole.Yufagongzi = 0;
- }
+ updatepltRole.Daozhanggongzi = sum_f - sum_k;
}
updatepltRole.Islock = "H";
@@ -388,41 +358,48 @@
return data;
}
+ /// <summary>
+ /// 宸ヨ祫鏍稿噯鏌ヨ
+ /// </summary>
+ /// <param name="searchEntity"></param>
+ /// <returns></returns>
public ResultDataEntity<HrSalaryDTO> SearchSalaryByPaging(HrSalaryDTOSearch searchEntity)
{
ResultDataEntity<HrSalaryDTO> data = new ResultDataEntity<HrSalaryDTO>();
- //var listCode = (from a in _context.SysCodeDtls
- // join b in _context.SysCodes
- // on a.CodeId equals b.Id
- // where a.RecStatus == "A"
- // && b.RecStatus == "A"
- // select new CodeDataEntity()
- // {
- // CodeId = b.Id,
- // CodeTable = b.CodeTable,
- // CodeField = b.CodeField,
- // CodeSn = a.CodeSn,
- // Comments = a.Comments,
- // Contents = a.Contents,
- // RecStatus = a.RecStatus,
- // Sort = a.Sort
- // }
- // );
+ var listCode = (from e in _context.SysCodes
+ join c in _context.SysCodeDtls
+ on e.Id equals c.CodeId
+ where e.RecStatus == "A"
+ && c.RecStatus == "A"
+ && e.CodeTable == "t_sim_bind"
+ && e.CodeField == "cardpro"
+ select c).OrderBy(x => x.Sort).ToList();
- //int year = 0;
- //int month = 0;
- //if (string.IsNullOrWhiteSpace(searchEntity.YearMonth))
- //{
- // DateTime yearMonth = DateTime.Now;//.Parse(searchEntity.YearMonth + "-01");
- // year = yearMonth.Year;
- // month = yearMonth.Month;
- //}
- var query = (from a in _context.HrSalaries//.Where(x => x.RecStatus == "A")
- // join b in listCode.Where(x => x.CodeTable == "hr_jibengongzi" && x.CodeField == "dianhuabutie")
- //on a.Dianhuabutie equals b.CodeSn
- // into bsssss
- // from bbb in bsssss.DefaultIfEmpty()
+ int year = 0;
+ int month = 0;
+ if (string.IsNullOrWhiteSpace(searchEntity.YearMonth))
+ {
+ DateTime yearMonth = DateTime.Now;//.Parse(searchEntity.YearMonth + "-01");
+ year = yearMonth.Year;
+ month = yearMonth.Month;
+ }
+ else
+ {
+ var len = searchEntity.YearMonth.Split('-');
+ if(len.Length==2)
+ {
+ year =int.Parse(len[0]);
+ month = int.Parse(len[1]);
+ }
+
+ }
+
+ var query = (from a in (_context.HrSalaries.Where(x => x.RecStatus == "A"))
+ //join b in listCode
+ //on a.Dianhuabutie equals b.CodeSn
+ //into bsssss
+ //from bbb in bsssss.DefaultIfEmpty()
join f in _context.PltUsers
on a.Userid equals f.Id
@@ -438,7 +415,7 @@
&& (string.IsNullOrWhiteSpace(searchEntity.Usernumber) || f.Usernumber == searchEntity.Usernumber.Trim())
&& (string.IsNullOrWhiteSpace(searchEntity.DeptId) || f.DeptId == searchEntity.DeptId.Trim())
&& (string.IsNullOrWhiteSpace(searchEntity.UserName) || f.UserName.Contains(searchEntity.UserName.Trim()))
- //&& (string.IsNullOrWhiteSpace(searchEntity.YearMonth) || ( a.Year == year && a.Month == month ))
+ && ( (a.Year == year && a.Month == month))
select new HrSalaryDTO
{
Id = a.Id,
@@ -457,7 +434,6 @@
Shebao = a.Shebao,
Dianhuabutie = a.Dianhuabutie,
-
Quanqinjiang = a.Quanqinjiang,
Jiaotngbutie = a.Jiaotngbutie,
Jixiaoticheng = a.Jixiaoticheng,
@@ -504,7 +480,7 @@
Modifier = a.Modifier,
Modifytime = a.Modifytime,
- }).OrderByDescending(x => x.Modifytime).ToList();
+ }).OrderBy(x => x.UserName).ToList();
@@ -515,9 +491,36 @@
if (searchEntity.totalrows == 0)
searchEntity.totalrows = query.Count();
var rolelist = query.Skip((searchEntity.page - 1) * searchEntity.rows).Take(searchEntity.rows).ToList();
-
+ if(rolelist!=null && rolelist.Count>0)
+ {
+ foreach(var item in rolelist)
+ {
+ item.DianhuabutieChs = BackChs(listCode, item.Dianhuabutie);
+ }
+ }
data.LoadData(searchEntity, rolelist);
return data;
+ }
+
+ /// <summary>
+ /// 娉ㄩ噴
+ /// </summary>
+ /// <param name="listCode"></param>
+ /// <param name="code"></param>
+ /// <returns></returns>
+ private string BackChs(List<SysCodeDtl> listCode ,decimal? code )
+ {
+ string str = "鏃�";
+ if(code.HasValue)
+ {
+ var st = ((int)code.Value).ToString();
+ var temp = listCode.Find(c => c.CodeSn == st);
+ if(temp!=null)
+ {
+ str = temp.Comments;
+ }
+ }
+ return str;
}
public ResultEntity ModifyStatus(string id, string userid)
@@ -582,6 +585,15 @@
/// <returns></returns>
public List<HrSalaryDTO> GetSalary(string userid,int year,int month)
{
+ var listCode = (from e in _context.SysCodes
+ join c in _context.SysCodeDtls
+ on e.Id equals c.CodeId
+ where e.RecStatus == "A"
+ && c.RecStatus == "A"
+ && e.CodeTable == "t_sim_bind"
+ && e.CodeField == "cardpro"
+ select c).OrderBy(x => x.Sort).ToList();
+
var entity = (from a in _context.HrSalaries
join b in _context.PltUsers on a.Userid equals b.Id
join c in _context.HrDepts on b.DeptId equals c.Id
@@ -622,6 +634,13 @@
if (entity == null)
{
entity = new List<HrSalaryDTO>();
+ }
+ else
+ {
+ foreach (var item in entity)
+ {
+ item.DianhuabutieChs = BackChs(listCode, item.Dianhuabutie);
+ }
}
return entity;
}
@@ -681,6 +700,9 @@
}
else
{
+ model.id = Guid.NewGuid().ToString();
+ model.year = salary.Year;
+ model.month = salary.Month;
model.sub_time = DateTime.Now;
model.status = "A";
_context.HrSalaryAppeal.Add(model);
@@ -727,6 +749,15 @@
public ResultDataEntity<HrSalaryDTO> SearchByPagingFinish(HrSalaryDTOSearch searchEntity)
{
ResultDataEntity<HrSalaryDTO> data = new ResultDataEntity<HrSalaryDTO>();
+
+ var listCode = (from e in _context.SysCodes
+ join c in _context.SysCodeDtls
+ on e.Id equals c.CodeId
+ where e.RecStatus == "A"
+ && c.RecStatus == "A"
+ && e.CodeTable == "t_sim_bind"
+ && e.CodeField == "cardpro"
+ select c).OrderBy(x => x.Sort).ToList();
DateTime st = DateTime.Now.AddDays(1 - DateTime.Now.Day).Date;
DateTime et = DateTime.Now.AddDays(1 - DateTime.Now.Day).Date.AddMonths(1).AddSeconds(-1);
@@ -822,7 +853,13 @@
if (searchEntity.totalrows == 0)
searchEntity.totalrows = list.Count();
var rolelist = list.Skip((searchEntity.page - 1) * searchEntity.rows).Take(searchEntity.rows).ToList();
-
+ if (rolelist != null && rolelist.Count > 0)
+ {
+ foreach (var item in rolelist)
+ {
+ item.DianhuabutieChs = BackChs(listCode, item.Dianhuabutie);
+ }
+ }
data.LoadData(searchEntity, rolelist);
return data;
}
diff --git a/zhengcaioa/zhengcaioa/Controllers/HR/SalaryCheckController.cs b/zhengcaioa/zhengcaioa/Controllers/HR/SalaryCheckController.cs
index dd2c3c8..3fc8724 100644
--- a/zhengcaioa/zhengcaioa/Controllers/HR/SalaryCheckController.cs
+++ b/zhengcaioa/zhengcaioa/Controllers/HR/SalaryCheckController.cs
@@ -62,7 +62,7 @@
/// <returns></returns>
public IActionResult GetList(HrSalaryDTOSearch search)
{
- _hrSalaryService.AutoCheck();
+ //_hrSalaryService.AutoCheck();
return new JsonResult(_hrSalaryService.SearchSalaryByPaging(search));
}
@@ -78,6 +78,22 @@
if (!string.IsNullOrEmpty(id))
{
dto = _hrSalaryService.Get(id);
+ }
+ if(!dto.Jiangjin.HasValue)
+ {
+ dto.Jiangjin = 0;
+ }
+ if (!dto.Bufagongzi.HasValue)
+ {
+ dto.Bufagongzi = 0;
+ }
+ if (!dto.Peichang.HasValue)
+ {
+ dto.Peichang = 0;
+ }
+ if (!dto.Jiucuo.HasValue)
+ {
+ dto.Jiucuo = 0;
}
ViewData.Model = dto;
return View();
@@ -215,7 +231,7 @@
public IActionResult GetSearchList(HrSalaryDTOSearch search)
{
//鑷姩纭
- _hrSalaryService.AutoCheck();
+ //_hrSalaryService.AutoCheck();
return new JsonResult(_hrSalaryService.SearchByPagingFinish(search));
}
diff --git a/zhengcaioa/zhengcaioa/Properties/PublishProfiles/FolderProfile.pubxml.user b/zhengcaioa/zhengcaioa/Properties/PublishProfiles/FolderProfile.pubxml.user
index 3b7fd30..98e5a7a 100644
--- a/zhengcaioa/zhengcaioa/Properties/PublishProfiles/FolderProfile.pubxml.user
+++ b/zhengcaioa/zhengcaioa/Properties/PublishProfiles/FolderProfile.pubxml.user
@@ -5,6 +5,6 @@
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<_PublishTargetUrl>D:\netcoreapp3.1\publish\</_PublishTargetUrl>
- <History>True|2021-06-18T02:23:47.0862716Z;</History>
+ <History>True|2021-07-13T01:53:03.3370599Z;True|2021-06-18T10:23:47.0862716+08:00;</History>
</PropertyGroup>
</Project>
\ No newline at end of file
diff --git a/zhengcaioa/zhengcaioa/Views/SalaryCheck/Appeal.cshtml b/zhengcaioa/zhengcaioa/Views/SalaryCheck/Appeal.cshtml
index 5a151fe..14ed8a7 100644
--- a/zhengcaioa/zhengcaioa/Views/SalaryCheck/Appeal.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/SalaryCheck/Appeal.cshtml
@@ -50,25 +50,25 @@
<body class="gray-bg" style="overflow:auto">
<form id="fm" method="post">
- <div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;">
+ <div class="wrapper wrapper-content" id="ibox-content" style="padding:5px;">
<div class="row">
<div class="col-sm-12">
<div class="ibox float-e-margins">
<div id="div_content" class="ibox-content" style="background-color:white;">
<div class="row">
- <div class="clearfix layer-area" style="padding-bottom:15px;">
+ <div class="clearfix layer-area" style="padding-bottom:10px;">
<label class="text-right col-sm-1 col-md-1 control-label">鐢宠瘔鐞嗙敱<i class="red">*</i></label>
<div class="col-sm-2 col-md-2">
<textarea class="form-control bt" id="ssly" name="reason" maxlength="4000" length="long" style="resize:none;overflow-y:hidden; height:80px;">@Model.reason</textarea>
</div>
</div>
- <div class="clearfix layer-area" style="padding-bottom:15px;">
+ <div class="clearfix layer-area" style="padding-bottom:10px;">
<label class="text-right col-sm-1 col-md-1 control-label">浜夎閲戦<i class="red">*</i></label>
<div class="col-sm-2 col-md-2">
<input class="form-control" id="zyje" name="amount" type="text" value="@Model.amount" oninput="if(value.length>10)value=value.slice(0,10)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
</div>
</div>
- <div class="clearfix layer-area" style="padding-bottom:15px;">
+ <div class="clearfix layer-area" style="padding-bottom:10px;">
<label class="text-right col-sm-1 col-md-1 control-label">鍒跺害渚濇嵁<i class="red">*</i></label>
<div class="col-sm-2 col-md-2">
<input type="hidden" name="salary_id" value="@Model.salary_id" />
diff --git a/zhengcaioa/zhengcaioa/Views/SalaryCheck/Edit.cshtml b/zhengcaioa/zhengcaioa/Views/SalaryCheck/Edit.cshtml
index 197060d..3296d4c 100644
--- a/zhengcaioa/zhengcaioa/Views/SalaryCheck/Edit.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/SalaryCheck/Edit.cshtml
@@ -50,47 +50,47 @@
<body class="gray-bg" style="overflow:auto">
<form id="fm" method="post">
- <div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;">
+ <div class="wrapper wrapper-content" id="ibox-content" style="padding:5px;">
<div class="row">
<div class="col-sm-6 col-md-6">
@*<div class="ibox float-e-margins"></div>*@
<div id="div_content" class="ibox-content" style="background-color:white;">
<div class="row">
- <div class="clearfix layer-area" style="padding-bottom:15px;">
+ <div class="clearfix layer-area" style="padding-bottom:10px;">
<label class="text-right col-sm-3 col-md-3 control-label">鍛樺伐濮撳悕</label>
<div class="col-sm-9 col-md-9">
<input class="form-control" labtype="txt" addvisible="true" readonly="readonly" type="text" value="@Model.UserName">
<input type="hidden" name="Id" value="@Model.Id" />
</div>
</div>
- <div class="clearfix layer-area" style="padding-bottom:15px;">
+ <div class="clearfix layer-area" style="padding-bottom: 10px;">
<label class="text-right col-sm-3 col-md-3 control-label">宸ヤ綔閮ㄩ棬</label>
<div class="col-sm-9 col-md-9">
<input class="form-control" labtype="txt" addvisible="true" readonly="readonly" type="text" value="@Model.DeptName">
</div>
</div>
- <div class="clearfix layer-area" style="padding-bottom:15px;">
+ <div class="clearfix layer-area" style="padding-bottom:10px;">
<label class="text-right col-sm-3 col-md-3 control-label">濂栭噾</label>
<div class="col-sm-9 col-md-9">
<input class="form-control" id="Jiangjin" name="Jiangjin" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.Jiangjin" oninput="if(value.length>10)value=value.slice(0,10)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
</div>
</div>
- <div class="clearfix layer-area" style="padding-bottom:15px;">
+ <div class="clearfix layer-area" style="padding-bottom:10px;">
<label class="text-right col-sm-3 col-md-3 control-label">琛ュ彂宸ヨ祫</label>
<div class="col-sm-9 col-md-9">
<input class="form-control" id="Bufagongzi" name="Bufagongzi" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.Bufagongzi" oninput="if(value.length>10)value=value.slice(0,10)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
</div>
</div>
- <div class="clearfix layer-area" style="padding-bottom:15px;">
+ <div class="clearfix layer-area" style="padding-bottom:10px;">
<label class="text-right col-sm-3 col-md-3 control-label">璧斿伩</label>
<div class="col-sm-9 col-md-9">
<input class="form-control" id="Peichang" name="Peichang" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.Peichang" oninput="if(value.length>10)value=value.slice(0,10)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
</div>
</div>
- <div class="clearfix layer-area" style="padding-bottom:15px;">
+ <div class="clearfix layer-area" style="padding-bottom:10px;">
<label class="text-right col-sm-3 col-md-3 control-label">绾犻敊</label>
<div class="col-sm-9 col-md-9">
- <input class="form-control" id="Jiucuo" name="Jiucuo" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.Jiucuo" oninput="if(value.length>10)value=value.slice(0,10)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
+ <input class="form-control" id="Jiucuo" name="Jiucuo" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.Jiucuo" onkeyup="value=value.toString().match(/^-?\d+(?:\.\d{0,2})?/)">
</div>
</div>
@@ -104,19 +104,19 @@
</div>
<div class="panel-body">
<div class="row">
- <div class="clearfix layer-area" style="padding-bottom:15px;">
+ <div class="clearfix layer-area" style="padding-bottom:10px;">
<label class="text-right col-sm-3 col-md-3 control-label">鐢宠瘔鐞嗙敱<i class="red">*</i></label>
<div class="col-sm-9 col-md-9">
<textarea class="form-control bt" readonly="readonly" style="resize:none;overflow-y:hidden; height:150px;">@Model.reason</textarea>
</div>
</div>
- <div class="clearfix layer-area" style="padding-bottom:15px;">
+ <div class="clearfix layer-area" style="padding-bottom:10px;">
<label class="text-right col-sm-3 col-md-3 control-label">浜夎閲戦<i class="red">*</i></label>
<div class="col-sm-9 col-md-9">
<input class="form-control" type="text" value="@Model.amount" readonly="readonly">
</div>
</div>
- <div class="clearfix layer-area" style="padding-bottom:15px;">
+ <div class="clearfix layer-area" style="padding-bottom:10px;">
<label class="text-right col-sm-3 col-md-3 control-label">鍒跺害渚濇嵁<i class="red">*</i></label>
<div class="col-sm-9 col-md-9">
<input class="form-control" labtype="txt" type="text" readonly="readonly" value="@Model.basis">
@@ -153,8 +153,8 @@
});
- var hh = document.body.clientHeight - $("#top").height() * 2 - 75;
- $("#div_content").height(hh);
+ //var hh = document.body.clientHeight - 200;
+ //$("#div_content").height(hh);
toastr.options = {
"closeButton": true,
diff --git a/zhengcaioa/zhengcaioa/Views/SalaryCheck/Employee.cshtml b/zhengcaioa/zhengcaioa/Views/SalaryCheck/Employee.cshtml
index 4457c23..1493ec9 100644
--- a/zhengcaioa/zhengcaioa/Views/SalaryCheck/Employee.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/SalaryCheck/Employee.cshtml
@@ -75,7 +75,7 @@
{ label: '宸ヤ綔琛ヨ创', name: 'Gongzuobutie', labtype: 'txt', hidden: false, width: 100 },
{ label: '鍔犵彮宸ヨ祫', name: 'Jiabangongzi', labtype: 'txt', hidden: false, width: 100 },
{ label: '绀句繚', name: 'Shebao', labtype: 'txt', hidden: false, width: 100 },
- { label: '鐢佃瘽琛ヨ创', name: 'Dianhuabutie', labtype: 'txt', hidden: false, width: 100 },
+ { label: '鐢佃瘽琛ヨ创', name: 'DianhuabutieChs', labtype: 'txt', hidden: false, width: 100 },
{ label: '鍏ㄥ嫟濂�', name: 'Quanqinjiang', labtype: 'txt', hidden: false, width: 100 },
{ label: '浜ら�氳ˉ璐�', name: 'Jiaotngbutie', labtype: 'txt', hidden: false, width: 100 },
{ label: '缁╂晥鎻愭垚', name: 'Jixiaoticheng', labtype: 'txt', hidden: false, width: 100 },
@@ -196,7 +196,7 @@
toastr.error("閿欒鎻愮ず锛氭鏈堜唤宸插畬鎴愮‘璁�,涓嶈兘鐢宠瘔锛�");
}
else {
- OpenWindow('鐢宠瘔', '40%', '50%', '/SalaryCheck/Appeal?id=' + dt);
+ OpenWindow('鐢宠瘔', '40%', '60%', '/SalaryCheck/Appeal?id=' + dt);
}
}
else {
diff --git a/zhengcaioa/zhengcaioa/Views/SalaryCheck/Index.cshtml b/zhengcaioa/zhengcaioa/Views/SalaryCheck/Index.cshtml
index b4b3fe5..f953f82 100644
--- a/zhengcaioa/zhengcaioa/Views/SalaryCheck/Index.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/SalaryCheck/Index.cshtml
@@ -28,11 +28,21 @@
{ label: '宸ヨ祫鏈堜唤', name: 'YearMonth', labtype: 'txt', hidden: false, width: 100 },
{
label: '鐘舵��', name: 'IslockChs', labtype: 'txt', hidden: false, width: 100, formatter: function (cellvalue, options, rowObject) {
- if (rowObject.Islock == 'S') {
- return '<b style="color: red">' + cellvalue + '</b>';
- } else {
- return cellvalue;
+ switch (rowObject.Islock) {
+ case 'S':
+ return '<b style="color: red">' + cellvalue + '</b>';
+
+ case 'D':
+ return '<b style="color: blue">' + cellvalue + '</b>';
+
+ default:
+ return cellvalue;
}
+ //if ( == 'S') {
+ // return '<b style="color: red">' + cellvalue + '</b>';
+ //} else {
+ // return cellvalue;
+ //}
}
},
{ label: '宸ヤ綔閮ㄩ棬', name: 'DeptName', labtype: 'txt', hidden: false, width: 120 },
@@ -41,7 +51,7 @@
{ label: '宸ヤ綔琛ヨ创', name: 'Gongzuobutie', labtype: 'txt', hidden: false, width: 100 },
{ label: '鍔犵彮宸ヨ祫', name: 'Jiabangongzi', labtype: 'txt', hidden: false, width: 100 },
{ label: '绀句繚', name: 'Shebao', labtype: 'txt', hidden: false, width: 100 },
- { label: '鐢佃瘽琛ヨ创', name: 'Dianhuabutie', labtype: 'txt', hidden: false, width: 100 },
+ { label: '鐢佃瘽琛ヨ创', name: 'DianhuabutieChs', labtype: 'txt', hidden: false, width: 100 },
{ label: '鍏ㄥ嫟濂�', name: 'Quanqinjiang', labtype: 'txt', hidden: false, width: 100 },
{ label: '浜ら�氳ˉ璐�', name: 'Jiaotngbutie', labtype: 'txt', hidden: false, width: 100 },
{ label: '缁╂晥鎻愭垚', name: 'Jixiaoticheng', labtype: 'txt', hidden: false, width: 100 },
@@ -64,7 +74,7 @@
];
dataUrl = "/SalaryCheck/GetList";
searchCol = [
- { label: '宸ュ彿', name: 'Usernumber2', labtype: 'txt', hidden: false },
+ { label: '鏈堜唤', name: 'YearMonth', labtype: 'monthdate', hidden: false },
{ label: '宸ヤ綔閮ㄩ棬', name: 'DeptId', labtype: 'combox', hidden: false, data: JSON.parse(dept) },
{ label: '鑱屽伐濮撳悕', name: 'UserName', labtype: 'txt', hidden: false },
];
@@ -86,7 +96,7 @@
var _pageEdit = function () {
var id = jQuery("#jqGrid").jqGrid('getGridParam', 'selrow');
if (id) {
- OpenWindow('宸ヨ祫鏍稿噯', '60%', '55%', '/SalaryCheck/Edit?id=' + id );
+ OpenWindow('宸ヨ祫鏍稿噯', '60%', '65%', '/SalaryCheck/Edit?id=' + id );
} else {
toastr.error("璇峰厛閫変腑1鏉¤褰曪紒");
}
diff --git a/zhengcaioa/zhengcaioa/Views/SalaryCheck/SearchIndex.cshtml b/zhengcaioa/zhengcaioa/Views/SalaryCheck/SearchIndex.cshtml
index 36937e7..7574b39 100644
--- a/zhengcaioa/zhengcaioa/Views/SalaryCheck/SearchIndex.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/SalaryCheck/SearchIndex.cshtml
@@ -37,7 +37,7 @@
{ label: '宸ヤ綔琛ヨ创', name: 'Gongzuobutie', labtype: 'txt', hidden: false, width: 100 },
{ label: '鍔犵彮宸ヨ祫', name: 'Jiabangongzi', labtype: 'txt', hidden: false, width: 100 },
{ label: '绀句繚', name: 'Shebao', labtype: 'txt', hidden: false, width: 100 },
- { label: '鐢佃瘽琛ヨ创', name: 'Dianhuabutie', labtype: 'txt', hidden: false, width: 100 },
+ { label: '鐢佃瘽琛ヨ创', name: 'DianhuabutieChs', labtype: 'txt', hidden: false, width: 100 },
{ label: '鍏ㄥ嫟濂�', name: 'Quanqinjiang', labtype: 'txt', hidden: false, width: 100 },
{ label: '浜ら�氳ˉ璐�', name: 'Jiaotngbutie', labtype: 'txt', hidden: false, width: 100 },
{ label: '缁╂晥鎻愭垚', name: 'Jixiaoticheng', labtype: 'txt', hidden: false, width: 100 },
diff --git a/zhengcaioa/zhengcaioa/zhengcaioa.csproj.user b/zhengcaioa/zhengcaioa/zhengcaioa.csproj.user
index 6823e94..2e2f7e4 100644
--- a/zhengcaioa/zhengcaioa/zhengcaioa.csproj.user
+++ b/zhengcaioa/zhengcaioa/zhengcaioa.csproj.user
@@ -9,7 +9,7 @@
<View_SelectedScaffolderCategoryPath>root/Common/MVC/View</View_SelectedScaffolderCategoryPath>
<Controller_SelectedScaffolderID>MvcControllerEmptyScaffolder</Controller_SelectedScaffolderID>
<Controller_SelectedScaffolderCategoryPath>root/Common/MVC/Controller</Controller_SelectedScaffolderCategoryPath>
- <NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile>
+ <NameOfLastUsedPublishProfile>D:\qianwj\ZCOa\zhengcaioa\zhengcaioa\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
<WebStackScaffolding_ViewDialogWidth>650</WebStackScaffolding_ViewDialogWidth>
<WebStackScaffolding_IsLayoutPageSelected>True</WebStackScaffolding_IsLayoutPageSelected>
<WebStackScaffolding_IsPartialViewSelected>False</WebStackScaffolding_IsPartialViewSelected>
--
Gitblit v1.9.1