|
|
@ -35,6 +35,23 @@ namespace SCP.PlanData |
|
|
|
var _ls = ScpCache.ADRESSList; |
|
|
|
DDL_Site.DataSource = _ls; |
|
|
|
DDL_Site.DataBind(); |
|
|
|
List<string> stinglist = new List<string>(); |
|
|
|
var list = _ls.Select(q => q.NamePone).ToList(); |
|
|
|
if (list != null) |
|
|
|
{ |
|
|
|
list.ForEach(q => |
|
|
|
{ |
|
|
|
if (q.Contains(' ')) |
|
|
|
{ |
|
|
|
stinglist.Add(q.Substring(0, q.IndexOf(' '))); |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
if (stinglist != null) |
|
|
|
{ |
|
|
|
DDL_Site.SelectedIndex = stinglist.IndexOf(CurrentUser.ChineseName) == -1?0: stinglist.IndexOf(CurrentUser.ChineseName); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private void SetRoleRule() |
|
|
@ -68,7 +85,8 @@ namespace SCP.PlanData |
|
|
|
{ |
|
|
|
V_TB_PO_DETAIL _entity = new V_TB_PO_DETAIL(); |
|
|
|
_entity.PoBillNum = Request["PoBillNum"]; |
|
|
|
SCP_PO_CONTROLLER.Get_V_TB_PO_DETAIL_List(_entity,(_ret)=> { |
|
|
|
SCP_PO_CONTROLLER.Get_V_TB_PO_DETAIL_List(_entity, (_ret) => |
|
|
|
{ |
|
|
|
|
|
|
|
if (_ret.State == ReturnStatus.Succeed) |
|
|
|
{ |
|
|
@ -114,7 +132,8 @@ namespace SCP.PlanData |
|
|
|
public void BindDetail() |
|
|
|
{ |
|
|
|
var qadOrder = Session["order"] as V_TB_PO; |
|
|
|
SearchV_TB_PO_DETAIL((ret)=> { |
|
|
|
SearchV_TB_PO_DETAIL((ret) => |
|
|
|
{ |
|
|
|
if (!string.IsNullOrEmpty(TextArea_PartCode.Text)) |
|
|
|
{ |
|
|
|
List<string> _strlist = new List<string>(); |
|
|
@ -313,7 +332,12 @@ namespace SCP.PlanData |
|
|
|
{ |
|
|
|
_lineList.Add(string.Format("产品名称:{0}截至日期:{1}", _entity.PartDesc1, _endTime.ToString())); |
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
{ |
|
|
|
_entity.EndTime = _date; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
else |
|
|
@ -325,6 +349,10 @@ namespace SCP.PlanData |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (DatePicker2.SelectedDate != null) |
|
|
|
{ |
|
|
|
_entity.EndTime = DatePicker2.SelectedDate; |
|
|
|
} |
|
|
|
if (_entity.PublishQty != null && _entity.PublishQty > 0) |
|
|
|
{ |
|
|
|
qadOrderList.Add(_entity); |
|
|
@ -390,7 +418,8 @@ namespace SCP.PlanData |
|
|
|
if (qadOrder.ModType == 2) |
|
|
|
{ |
|
|
|
int i = 0; |
|
|
|
qadOrderList.ForEach(p => { |
|
|
|
qadOrderList.ForEach(p => |
|
|
|
{ |
|
|
|
if (p.PlanQty != p.PublishQty) |
|
|
|
{ |
|
|
|
i = 1; |
|
|
|