| | |
| | | public DateTime Modifytime { get; set; } |
| | | |
| | | public decimal? GoodsCaozuo { get; set; } |
| | | |
| | | public string HaocaiStatus { get; set; } |
| | | |
| | | } |
| | | public class AdmGoodsManageDTOSearch : SearchEntity |
| | | { |
| | |
| | | public partial class HrSalaryDTOSearch : SearchEntity |
| | | { |
| | | public string searchDate { get; set; } |
| | | public string searchDatestart { get; set; } |
| | | public string searchDateend { get; set; } |
| | | public string YearMonth { get; set; } |
| | | public string Usernumber { get; set; } |
| | | public string DeptId { get; set; } |
| | |
| | | public DateTime Createtime { get; set; } |
| | | public string Modifier { get; set; } |
| | | public DateTime Modifytime { get; set; } |
| | | public string HaocaiStatus { get; set; } |
| | | } |
| | | } |
| | |
| | | .HasDefaultValueSql("('A')") |
| | | .HasComment("ç©åç¶æ"); |
| | | |
| | | entity.Property(e => e.HaocaiStatus) |
| | | .HasMaxLength(1) |
| | | .HasColumnName("haocai_status") |
| | | .HasDefaultValueSql("('D')"); |
| | | |
| | | entity.Property(e => e.Modifier) |
| | | .IsRequired() |
| | | .HasMaxLength(50) |
| | |
| | | } |
| | | |
| | | updateproject.GoodsStatus = entity.GoodsStatus; |
| | | |
| | | updateproject.HaocaiStatus = entity.HaocaiStatus; |
| | | |
| | | |
| | | updateproject.RecStatus = entity.RecStatus; |
| | | updateproject.Modifier = entity.Modifier; |
| | | updateproject.Modifytime = entity.Modifytime; |
| | |
| | | // DocContent = a.DocContent, |
| | | GoodsLeft = a.GoodsLeft, |
| | | GoodsStatus = a.GoodsStatus, |
| | | |
| | | HaocaiStatus = a.HaocaiStatus, |
| | | GoodsName = a.GoodsName, |
| | | |
| | | |
| | |
| | | DateTime st = DateTime.Now.AddDays(1 - DateTime.Now.Day).Date; |
| | | DateTime et = DateTime.Now.AddDays(1 - DateTime.Now.Day).Date.AddMonths(1).AddSeconds(-1); |
| | | int month = 0; |
| | | if (!string.IsNullOrEmpty(searchEntity.searchDate)) |
| | | if (!string.IsNullOrEmpty(searchEntity.searchDatestart)) |
| | | { |
| | | var times = searchEntity.searchDate.Split('|'); |
| | | if (times.Length == 2) |
| | | { |
| | | st = DateTime.Parse(times[0]); |
| | | et= DateTime.Parse(times[1]); |
| | | } |
| | | st = DateTime.Parse(searchEntity.searchDatestart + "-01"); |
| | | |
| | | } |
| | | if (!string.IsNullOrEmpty(searchEntity.searchDateend)) |
| | | { |
| | | et = DateTime.Parse(searchEntity.searchDateend + "-01"); |
| | | |
| | | } |
| | | var query = (from a in _context.HrSalaries where a.Year >= st.Year && a.Month >= st.Month && a.Year <= et.Year && a.Month <= et.Month select a); |
| | | |
| | |
| | | int y = 1; |
| | | var columnTitles = new List<string>() |
| | | { |
| | | /*"建档æ¶é´",*/"客æ·åä½","详ç»å°å","èç³»çµè¯","çµåé®ç®±","客æ·å¾®ä¿¡" |
| | | "建档æ¶é´","å®¢æ·æ¥æº","è¡ä¸åç±»","客æ·ç±»å","客æ·åç§°","客æ·åä½","è系人微信" |
| | | ,"客æ·å°å","ç½å","è系人座æº","èç³»äººææº","è系人QQ","è系人é®ç®±", |
| | | |
| | | "è系人2å§å","è系人2ææº","è系人2QQ" |
| | | |
| | | }; |
| | | foreach(var columnTitle in columnTitles) |
| | | { |
| | |
| | | x++; |
| | | y = 1; |
| | | var cell = worksheet.Cells[x, y++]; |
| | | //cell.Value = item.CreatetimeName; |
| | | //cell = worksheet.Cells[x, y++]; |
| | | cell.Value = item.CreatetimeName; |
| | | |
| | | cell = worksheet.Cells[x, y++]; |
| | | cell.Value = item.KhlyName; |
| | | cell = worksheet.Cells[x, y++]; |
| | | cell.Value = item.HyflName; |
| | | cell = worksheet.Cells[x, y++]; |
| | | cell.Value = item.KhlxName; |
| | | cell = worksheet.Cells[x, y++]; |
| | | cell.Value = item.Name; |
| | | cell = worksheet.Cells[x, y++]; |
| | | cell.Value = item.Name; |
| | | cell = worksheet.Cells[x, y++]; |
| | | cell.Value = item.Weixin; |
| | | cell = worksheet.Cells[x, y++]; |
| | | cell.Value = item.Address; |
| | | cell = worksheet.Cells[x, y++]; |
| | | cell.Value = item.Url; |
| | | cell = worksheet.Cells[x, y++]; |
| | | cell.Value = item.Tel; |
| | | cell = worksheet.Cells[x, y++]; |
| | | cell.Value = item.Phone; |
| | | cell = worksheet.Cells[x, y++]; |
| | | cell.Value = item.Qq; |
| | | cell = worksheet.Cells[x, y++]; |
| | | cell.Value = item.Email; |
| | | cell = worksheet.Cells[x, y++]; |
| | | cell.Value = item.Weixin; |
| | | cell.Value = item.YwName; |
| | | cell = worksheet.Cells[x, y++]; |
| | | cell.Value = item.YwTel; |
| | | cell = worksheet.Cells[x, y++]; |
| | | cell.Value = item.YwQq; |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | ViewData["ActionInfo"] = actionlist; |
| | | |
| | | ViewBag.dept = _hrDeptService.GetList().Select(x => new { code = x.Id, label = x.DeptName }).ToList(); |
| | | ViewBag.stime = DateTime.Now.AddDays(1 - DateTime.Now.Day).Date.ToString("yyyy-MM-dd"); |
| | | ViewBag.etime = DateTime.Now.AddDays(1 - DateTime.Now.Day).Date.AddMonths(1).AddSeconds(-1).ToString("yyyy-MM-dd"); |
| | | ViewBag.stime = DateTime.Now.AddDays(1 - DateTime.Now.Day).Date.ToString("yyyy-MM"); |
| | | ViewBag.etime = DateTime.Now.AddDays(1 - DateTime.Now.Day).Date.AddMonths(1).AddSeconds(-1).ToString("yyyy-MM"); |
| | | |
| | | return View(); |
| | | } |
| | |
| | | ViewData["ActionInfo"] = actionlist; |
| | | |
| | | //ViewBag.dept = _hrDeptService.GetList().Select(x => new { code = x.Id, label = x.DeptName }).ToList(); |
| | | ViewBag.stime = new DateTime(DateTime.Now.Year,1,1).ToString("yyyy-MM-dd"); |
| | | ViewBag.etime = DateTime.Now.AddDays(1 - DateTime.Now.Day).Date.AddMonths(1).AddSeconds(-1).ToString("yyyy-MM-dd"); |
| | | ViewBag.stime =DateTime.Now.ToString("yyyy-MM"); |
| | | ViewBag.etime = DateTime.Now.AddDays(1 - DateTime.Now.Day).Date.AddMonths(1).AddSeconds(-1).ToString("yyyy-MM"); |
| | | |
| | | ViewBag.UserId = UserId; |
| | | |
| | |
| | | //èªå¨ç¡®è®¤ |
| | | //_hrSalaryService.AutoCheck(); |
| | | |
| | | if (string.IsNullOrEmpty(search.searchDate)) |
| | | if (string.IsNullOrEmpty(search.searchDatestart)) |
| | | { |
| | | search.searchDate = new DateTime(DateTime.Now.Year, 1, 1).ToString("yyyy-MM-dd") + "|" + DateTime.Now.AddDays(1 - DateTime.Now.Day).Date.AddMonths(1).AddSeconds(-1).ToString("yyyy-MM-dd"); |
| | | search.searchDatestart = DateTime.Now.ToString("yyyy-MM"); |
| | | } |
| | | if (string.IsNullOrEmpty(search.searchDateend)) |
| | | { |
| | | search.searchDate = DateTime.Now.AddDays(1 - DateTime.Now.Day).Date.AddMonths(1).AddSeconds(-1).ToString("yyyy-MM"); |
| | | } |
| | | |
| | | return new JsonResult(_hrSalaryService.SearchByPagingFinish(search)); |
| | |
| | | ViewBag.GoodsStatus = _liaotianService.GetSYScode("adm_goods_manage", "goods_status"); |
| | | |
| | | |
| | | |
| | | ViewBag.shifou = _liaotianService.GetSYScode("system", "shifou"); |
| | | |
| | | |
| | | |
| | |
| | | Offdays += 1; |
| | | } |
| | | } |
| | | |
| | | if(userList[a].Outdate.HasValue && dateminkaoqin >=userList[a].Outdate ) |
| | | //离èå½å¤©è®¡ç®èå¤ |
| | | if(userList[a].Zhiwustatus == "D" && userList[a].Outdate.HasValue && dateminkaoqin >userList[a].Outdate ) |
| | | { |
| | | dateminkaoqin = dateminkaoqin.AddDays(1); |
| | | continue; |
| | |
| | | |
| | | List<AdmGoodsClassifyDTO> ClassifyId = ViewData["ClassifyId"] as List<AdmGoodsClassifyDTO>; //ç©åç±»å |
| | | |
| | | List<SysCodeDtl> shifou = ViewData["shifou"] as List<SysCodeDtl>; //ç©åç¶æ |
| | | |
| | | } |
| | | @{ |
| | | Layout = null; |
| | |
| | | |
| | | |
| | | </div>*@ |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | @*@if (!string.IsNullOrWhiteSpace(Model.Id)) |
| | | { |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">å©ä½æ°é</label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <input class="form-control" label="å©ä½æ°é" name="GoodsLeft" id="GoodsLeft" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.GoodsLeft" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | @*@if (!string.IsNullOrWhiteSpace(Model.Id)) |
| | | { |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">å©ä½æ°é</label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <input class="form-control" label="å©ä½æ°é" name="GoodsLeft" id="GoodsLeft" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.GoodsLeft" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> |
| | | |
| | | </div> |
| | | }*@ |
| | | </div> |
| | | }*@ |
| | | |
| | | |
| | | |
| | | <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"> |
| | | <select id="GoodsStatus" class="form-control" name="GoodsStatus" data-placeholder="éæ© åºå ..."> |
| | | <option value="" hassubinfo="true">è¯·éæ©</option> |
| | | @foreach (var item in GoodsStatus) |
| | | <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"> |
| | | <select id="GoodsStatus" class="form-control" name="GoodsStatus" data-placeholder="éæ© åºå ..."> |
| | | <option value="" hassubinfo="true">è¯·éæ©</option> |
| | | @foreach (var item in GoodsStatus) |
| | | { |
| | | @if (!item.CodeSn.Equals(Model.GoodsStatus)) |
| | | { |
| | | @if (!item.CodeSn.Equals(Model.GoodsStatus)) |
| | | { |
| | | <option value="@item.CodeSn" hassubinfo="true"> |
| | | @item.Comments |
| | | </option> |
| | | } |
| | | else |
| | | { |
| | | <option value="@item.CodeSn" hassubinfo="true" selected="selected"> |
| | | @item.Comments |
| | | </option> |
| | | } |
| | | |
| | | <option value="@item.CodeSn" hassubinfo="true"> |
| | | @item.Comments |
| | | </option> |
| | | } |
| | | else |
| | | { |
| | | <option value="@item.CodeSn" hassubinfo="true" selected="selected"> |
| | | @item.Comments |
| | | </option> |
| | | } |
| | | |
| | | </select> |
| | | </div> |
| | | } |
| | | |
| | | |
| | | </select> |
| | | </div> |
| | | |
| | | <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"> |
| | | <select id="HaocaiStatus" class="form-control" name="HaocaiStatus" data-placeholder="éæ© åºå ..."> |
| | | <option value="" hassubinfo="true">è¯·éæ©</option> |
| | | @foreach (var item in shifou) |
| | | { |
| | | @if (!item.CodeSn.Equals(Model.HaocaiStatus)) |
| | | { |
| | | <option value="@item.CodeSn" hassubinfo="true"> |
| | | @item.Comments |
| | | </option> |
| | | } |
| | | else |
| | | { |
| | | <option value="@item.CodeSn" hassubinfo="true" selected="selected"> |
| | | @item.Comments |
| | | </option> |
| | | } |
| | | |
| | | } |
| | | |
| | | </select> |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | |
| | | |
| | |
| | | return; |
| | | } |
| | | |
| | | if ($("#HaocaiStatus").val() == '') { |
| | | toastr.warning("æ¯å¦èæä¸è½ä¸ºç©º"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | |
| | | ]; |
| | | dataUrl = "/SalaryCheck/GetList"; |
| | | searchCol = [ |
| | | { label: 'æä»½', name: 'YearMonth', labtype: 'monthdate', hidden: false }, |
| | | { label: 'æä»½', name: 'YearMonth', labtype: 'monthdate', hidden: false, cwidth: '5%', cccwidth: '8%' }, |
| | | { label: 'å·¥ä½é¨é¨', name: 'DeptId', labtype: 'combox', hidden: false, data: JSON.parse(dept) }, |
| | | { label: 'èå·¥å§å', name: 'UserName', labtype: 'txt', hidden: false }, |
| | | ]; |
| | |
| | | ]; |
| | | dataUrl = "/SalaryCheck/GetSearchList"; |
| | | searchCol = [ |
| | | { label: 'æ¶é´', name: 'searchDate', labtype: 'datearea', hidden: false }, |
| | | { label: 'æ¶é´', name: 'searchDatestart', labtype: 'monthdate', hidden: false, cwidth: '5%', cccwidth: '8%' }, |
| | | { label: 'å°', name: 'searchDateend', labtype: 'monthdate', hidden: false, cwidth: '2%', cccwidth: '8%' }, |
| | | { label: 'é¨é¨', name: 'DeptId', labtype: 'combox', hidden: false, data: JSON.parse(dept) }, |
| | | { label: 'å§å', name: 'UserName', labtype: 'txt', hidden: false }, |
| | | { label: 'å·¥å·', name: 'Usernumber', labtype: 'txt', hidden: false }, |
| | |
| | | ]; |
| | | dataUrl = "/SalaryCheck/GetSearchListRenshi?UserId=" + UserId; |
| | | searchCol = [ |
| | | { label: 'æ¶é´', name: 'searchDate', labtype: 'datearea', hidden: false }, |
| | | { label: 'æ¶é´', name: 'searchDatestart', labtype: 'monthdate', hidden: false, cwidth: '5%', cccwidth: '8%' }, |
| | | { label: 'å°', name: 'searchDateend', labtype: 'monthdate', hidden: false, cwidth: '2%', cccwidth: '8%' }, |
| | | //{ label: 'é¨é¨', name: 'DeptId', labtype: 'combox', hidden: false, data: JSON.parse(dept) }, |
| | | //{ label: 'å§å', name: 'UserName', labtype: 'txt', hidden: false }, |
| | | //{ label: 'å·¥å·', name: 'Usernumber', labtype: 'txt', hidden: false }, |
| | |
| | | return; |
| | | } |
| | | |
| | | if ($.trim($("#Zhiwustatus").val()) == 'D') { |
| | | if ($.trim($("#Outdate").val()) == '') { |
| | | toastr.warning("å¨èç¶æä¸ºç¦»èå¿
须填åç¦»èæ¥æ"); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | //if ($.trim($("#IpMac").val()) == '') { |
| | | // toastr.warning("å·¥ä½çµèMACä¸è½ä¸ºç©º"); |
| | | // return; |
| | |
| | | USE [zhengcaioa] |
| | | GO |
| | | |
| | | ALTER TABLE [dbo].[adm_goods_manage] ADD [haocai_status] [nvarchar](1) DEFAULT ('D') |
| | | GO |
| | | |
| | | |
| | | update [adm_goods_manage] set [haocai_status]='D' |
| | | GO |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | USE [zhengcaioa] |
| | | GO |
| | | |
| | | /****** Object: Table [dbo].[ADM_Customer_withdrawal] Script Date: 2021/8/9 13:43:29 ******/ |
| | | SET ANSI_NULLS ON |
| | | GO |