diff --git a/Controller/SCP_ASK_CONTROLLER.cs b/Controller/SCP_ASK_CONTROLLER.cs index e780625..9b9b412 100644 --- a/Controller/SCP_ASK_CONTROLLER.cs +++ b/Controller/SCP_ASK_CONTROLLER.cs @@ -1431,7 +1431,6 @@ namespace CK.SCP.Controller q = q.Where(p => p.AskBillNum==p_entity.AskBillNum); } - _ret.State = ReturnStatus.Succeed; _ret.Result = q; p_action(_ret); diff --git a/Controller/SCP_EXCEL_CONTROLLER.cs b/Controller/SCP_EXCEL_CONTROLLER.cs index cece739..ad70e88 100644 --- a/Controller/SCP_EXCEL_CONTROLLER.cs +++ b/Controller/SCP_EXCEL_CONTROLLER.cs @@ -205,9 +205,7 @@ namespace CK.SCP.Controller _entity.要货数量 = itm.AskQty.ToString(); _entity.说明 = string.IsNullOrEmpty(itm.Remark)?string.Empty:itm.Remark.ToString(); _entity.到货日期 = itm.EndTime == null ? string.Empty : itm.EndTime.Value.ToString("yyyyMMdd"); - _entity.预测一 = itm.Extend1.ToString(); - _entity.预测二= itm.Extend2.ToString(); - _entity.预测三 = itm.Extend3.ToString(); + _exportDetailList.Add(_entity); }); diff --git a/Controller/SCP_RECEIVE_CONTROLLER.cs b/Controller/SCP_RECEIVE_CONTROLLER.cs index 91c1505..dbf63d4 100644 --- a/Controller/SCP_RECEIVE_CONTROLLER.cs +++ b/Controller/SCP_RECEIVE_CONTROLLER.cs @@ -652,7 +652,7 @@ namespace CK.SCP.Controller _item.ITEM_CONTENT = string.Format("收货单号{0}发货单号{1},已收货!请申请发票", p.RecvBillNum, _ls[0].AsnBillNum); _item.ITEM_TYPE = (int)PENDING_MESSAGE_TYPE.PO_AUDIT_PASS; _item.ITEM_STATE = (int)PENDING_STATE.WAITING; - _item.SENDER = p.CreateUser; + _item.SENDER = p.CreateUser == null ? userName : p.CreateUser; _item.VEND_ID = p.VendId; _item.SENDING_TIME = DateTime.Now; //_item.ITEM_ADDRESS = p.Site_Desc; diff --git a/Models/ScpEntity/ExcelExportEnttity/SCP_ASK_DETAIL_EXPORT.cs b/Models/ScpEntity/ExcelExportEnttity/SCP_ASK_DETAIL_EXPORT.cs index fb249f8..1389ccc 100644 --- a/Models/ScpEntity/ExcelExportEnttity/SCP_ASK_DETAIL_EXPORT.cs +++ b/Models/ScpEntity/ExcelExportEnttity/SCP_ASK_DETAIL_EXPORT.cs @@ -20,9 +20,8 @@ namespace CK.SCP.Models.ScpEntity.ExcelExportEnttity public string 要货数量 {get;set;} //"AskQty" public string 说明 { get; set; } //"ReMark" public string 到货日期 { get; set; } - public string 预测一 { get; set; } //"OneMonth" - public string 预测二 { get; set; } //"TwoMonth" - public string 预测三 { get; set; } //"ThreeMonth" + + } } diff --git a/Models/UniApiEntity/xxscm_tx_mstr.cs b/Models/UniApiEntity/xxscm_tx_mstr.cs index 177ce0b..e7fe63e 100644 --- a/Models/UniApiEntity/xxscm_tx_mstr.cs +++ b/Models/UniApiEntity/xxscm_tx_mstr.cs @@ -36,7 +36,7 @@ namespace CK.SCP.Models.UniApiEntity [StringLength(50)] public string xxscm_tx_domain { get; set; } - [Required(AllowEmptyStrings = true)] + [StringLength(50)] public string xxscm_tx_site { get; set; } diff --git a/SCP/Views/BasicData/SCP_FACTORY.aspx b/SCP/Views/BasicData/SCP_FACTORY.aspx index 0b0c14c..e1dcc06 100644 --- a/SCP/Views/BasicData/SCP_FACTORY.aspx +++ b/SCP/Views/BasicData/SCP_FACTORY.aspx @@ -11,7 +11,7 @@