| | |
| | | //public string? FDescription { get; set; } |
| | | |
| | | public string? fremarks { get; set; } |
| | | public string? CustType { get; set; } |
| | | public string? CustGroup { get; set; } |
| | | |
| | | } |
| | |
| | | public string? FStockStatusType { get; set; } //库存状态类型 |
| | | public string? FZYC { get; set; } //直运仓 |
| | | public string? FGYC { get; set; } //管易仓 |
| | | public string? FZMC { get; set; } //分组名称 |
| | | |
| | | } |
| | |
| | | public string? Remark5 { get; set; } |
| | | |
| | | [SugarColumn(IsIgnore = true)] public string? Type { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 客户类别 |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "CUST_TYPE")] |
| | | public string? CustType { get; set; } |
| | | /// <summary> |
| | | /// 客户分组 |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "CUST_GROUP")] |
| | | public string? CustGroup { get; set; } |
| | | } |
| | |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "FGYC")] |
| | | public string? FGYC { get; set; } |
| | | /// <summary> |
| | | /// 分组名称 |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "FZMC")] |
| | | public string? FZMC { get; set; } |
| | | } |
| | |
| | | { |
| | | /// <summary> |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "ID")] |
| | | |
| | | [SugarColumn(IsPrimaryKey = true, ColumnName = "ID")] |
| | | public decimal Id { get; set; } |
| | | |
| | | /// <summary> |
| | |
| | | CreateDate = DateTime.Now, |
| | | FZYC= depots.FZYC, |
| | | FGYC= depots.FGYC, |
| | | FZMC= depots.FZMC, |
| | | Company = "1000", |
| | | Factory = "1000" |
| | | Factory = "1000", |
| | | Type=depots.Type, |
| | | }; |
| | | } |
| | | |
| | |
| | | ExpPeriod = item.FExpPeriod, |
| | | //ColorName = item.FColor, |
| | | CreateDate = DateTime.Now, |
| | | Type=item.Type, |
| | | //20250412 是否根据工厂不同修改不同编码 |
| | | Company = "1000", |
| | | Factory = "1000", |
| | | /// <summary> |
| | |
| | | Fforbidstatus = unit.FForbidStatus, |
| | | CreateDate = DateTime.Now, |
| | | Company = "1000", |
| | | Factory = "1000" |
| | | Factory = "1000" , |
| | | Type=unit.Type |
| | | }; |
| | | } |
| | | |
| | |
| | | switch (unit.Type) |
| | | { |
| | | case "0": |
| | | if (UpdatePositionStatus(db, entity.Id, "A")) // 启用岗位 |
| | | if (UpdatePositionStatus(db, entity.Id, "A", null, "")) // 启用岗位 |
| | | return 1; |
| | | break; |
| | | case "1": |
| | | if (UpdatePositionStatus(db, entity.Id, "B")) // 禁用岗位 |
| | | if (UpdatePositionStatus(db, entity.Id, "B", entity.DisabledDate, entity.DisabledBy)) // 禁用岗位 |
| | | return 1; |
| | | break; |
| | | //case "2": |
| | |
| | | |
| | | // 更新岗位状态的方法 |
| | | private bool UpdatePositionStatus(SqlSugarScope db, decimal positionId, |
| | | string status) |
| | | string status, DateTime? jytime, string jyr) |
| | | { |
| | | var result = db.Updateable<MesPosition>() |
| | | .SetColumns(s => s.Fforbidstatus == status) |
| | | .SetColumns(s => s.DisabledDate == jytime) |
| | | .Where(s => s.Id == positionId).ExecuteCommand(); |
| | | |
| | | if (result > 0) |
| | |
| | | DisabledDate = position.FForbidDate != null |
| | | ? DateTime.ParseExact(position.FForbidDate, |
| | | "yyyy-MM-dd HH:mm:ss", null) |
| | | : null |
| | | : null, |
| | | Type=position.Type, |
| | | }; |
| | | } |
| | | |
| | |
| | | FforbidStatus = staff.FForbidStatus, |
| | | CreateOrg = Convert.ToDecimal(staff.FCreateOrgId), |
| | | UseOrg = Convert.ToDecimal(staff.FUseOrgId), |
| | | FGZZZ=staff.FGZZZ |
| | | FGZZZ=staff.FGZZZ, |
| | | Type = staff.Type, |
| | | }; |
| | | |
| | | //删除 2025-01-04 池南骏 |
| | |
| | | ParentId = Convert.ToDecimal(department.FParentID), |
| | | FDOCUMENTSTATUS = department.FDocumentStatus, |
| | | Company = "1000", |
| | | Factory = "1000" |
| | | Factory = "1000", |
| | | Type=department.Type, |
| | | }; |
| | | } |
| | | |
| | |
| | | CreateDate = DateTime.Now, |
| | | CreateOrg = Convert.ToDecimal(customer.FCreateOrgId), |
| | | UseOrg = Convert.ToDecimal(customer.FUseOrgId), |
| | | CustType = customer.CustType, |
| | | CustGroup = customer.CustGroup, |
| | | Type= customer.Type, |
| | | Company = "1000", |
| | | Factory = "1000" |
| | | }; |
| | |
| | | Remark = supplier.fremarks, |
| | | Remark3 = supplier.FsuppCategory, |
| | | GYS_FZ = supplier.GYSFZ, |
| | | Type = supplier.Type, |
| | | Company = "1000", |
| | | Factory = "1000" |
| | | }; |
| | |
| | | entity.Method = METHOD; |
| | | entity.Data = JsonConvert.SerializeObject(unit); |
| | | entity.Status = 1; |
| | | entity.Route =unit.FNumber; |
| | | entity.CreateBy = "PL017"; |
| | | try |
| | | { |
| | |
| | | entity.Data = JsonConvert.SerializeObject(unit); |
| | | entity.Status = 1; |
| | | entity.CreateBy = "PL017"; |
| | | entity.Route=unit.FNumber; |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | |
| | | entity.Data = JsonConvert.SerializeObject(unit); |
| | | entity.Status = 1; |
| | | entity.CreateBy = "PL017"; |
| | | entity.Route = unit.FNumber; |
| | | |
| | | try |
| | | { |
| | |
| | | entity.Data = JsonConvert.SerializeObject(unit); |
| | | entity.Status = 1; |
| | | entity.CreateBy = "PL017"; |
| | | entity.Route=unit.FNumber; |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | |
| | | entity.Data = JsonConvert.SerializeObject(staff); |
| | | entity.Status = 1; |
| | | entity.CreateBy = "PL017"; |
| | | entity.Route = staff.FStaffNumber; |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | |
| | | entity.Data = JsonConvert.SerializeObject(unit); |
| | | entity.Status = 1; |
| | | entity.CreateBy = "PL017"; |
| | | entity.Route=unit.FNumber; |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | |
| | | entity.Data = JsonConvert.SerializeObject(unit); |
| | | entity.Status = 1; |
| | | entity.CreateBy = "PL017"; |
| | | entity.Route = unit.FNumber; |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | |
| | | entity.Data = JsonConvert.SerializeObject(unit); |
| | | entity.Status = 1; |
| | | entity.CreateBy = "PL017"; |
| | | entity.Route = unit.FNumber; |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | |
| | | entity.Data = JsonConvert.SerializeObject(unit); |
| | | entity.Status = 1; |
| | | entity.CreateBy = "PL017"; |
| | | entity.Route=unit.FNumber; |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |