|
@ -119,16 +119,20 @@ namespace SCP.PlanData |
|
|
_entity.SendState = int.Parse(rb_SendState.SelectedValue); |
|
|
_entity.SendState = int.Parse(rb_SendState.SelectedValue); |
|
|
_entity.DayState = int.Parse(ddl_DayState.SelectedValue); |
|
|
_entity.DayState = int.Parse(ddl_DayState.SelectedValue); |
|
|
_entity.IsDeleted = false; |
|
|
_entity.IsDeleted = false; |
|
|
_entity.UserInAddress = CurrentUser.FactoryList; |
|
|
_entity.Site = CurrentUser.UsedDomain; |
|
|
_entity.UserInVendIds = CurrentUser.VenderList; |
|
|
if (CurrentUser.VenderList.Count > 0) |
|
|
_entity.UserInSubSite = CurrentUser.SubSiteList; |
|
|
{ |
|
|
|
|
|
_entity.VendId = CurrentUser.VenderList.FirstOrDefault(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
_entity.SubSite = CurrentUser.UserdSite; |
|
|
|
|
|
|
|
|
if (CurrentUser.RoleList.Contains("供应商") && CurrentUser.VenderList.Count==0) |
|
|
if (CurrentUser.RoleList.Contains("供应商") && CurrentUser.VenderList.Count==0) |
|
|
{ |
|
|
{ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
SCP_ASK_CONTROLLER.Get_V_TB_ASK_ASN_View_List(_entity, (_ret) => |
|
|
SCP_ASK_CONTROLLER.Get_V_TB_ASK_ASN_View_List_Directly(_entity, (_ret) => |
|
|
{ |
|
|
{ |
|
|
if (_ret.State == ReturnStatus.Succeed) |
|
|
if (_ret.State == ReturnStatus.Succeed) |
|
|
{ |
|
|
{ |
|
@ -147,37 +151,37 @@ namespace SCP.PlanData |
|
|
} |
|
|
} |
|
|
protected void btnOutput_Click(object sender , EventArgs e) |
|
|
protected void btnOutput_Click(object sender , EventArgs e) |
|
|
{ |
|
|
{ |
|
|
var _ls = new V_TB_INCOMPLETE_ASK(); |
|
|
V_TB_INCOMPLETE_ASK _entity = new V_TB_INCOMPLETE_ASK(); |
|
|
_ls.PoBillNum = TextBillNo.Text; |
|
|
_entity.PoBillNum = TextBillNo.Text; |
|
|
|
|
|
|
|
|
if (TextBillTime1.SelectedDate != null) |
|
|
if (TextBillTime1.SelectedDate != null) |
|
|
{ |
|
|
{ |
|
|
_ls.BeginTimeStart = (DateTime)TextBillTime1.SelectedDate; |
|
|
_entity.BeginTimeStart = (DateTime)TextBillTime1.SelectedDate; |
|
|
} |
|
|
} |
|
|
if (TextBillTime2.SelectedDate != null) |
|
|
if (TextBillTime2.SelectedDate != null) |
|
|
{ |
|
|
{ |
|
|
_ls.BeginTimeEnd = (DateTime)TextBillTime2.SelectedDate; |
|
|
_entity.BeginTimeEnd = (DateTime)TextBillTime2.SelectedDate; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (dp_EndTimeStart.SelectedDate != null) |
|
|
if (dp_EndTimeStart.SelectedDate != null) |
|
|
{ |
|
|
{ |
|
|
_ls.EndTimeStart = (DateTime)dp_EndTimeStart.SelectedDate; |
|
|
_entity.EndTimeStart = (DateTime)dp_EndTimeStart.SelectedDate; |
|
|
} |
|
|
} |
|
|
if (dp_EndTimeEnd.SelectedDate != null) |
|
|
if (dp_EndTimeEnd.SelectedDate != null) |
|
|
{ |
|
|
{ |
|
|
_ls.EndTimeEnd = (DateTime)dp_EndTimeEnd.SelectedDate; |
|
|
_entity.EndTimeEnd = (DateTime)dp_EndTimeEnd.SelectedDate; |
|
|
} |
|
|
} |
|
|
if (TextBoxAskNo.Text != null) |
|
|
if (TextBoxAskNo.Text != null) |
|
|
{ |
|
|
{ |
|
|
_ls.AskBillNum = TextBoxAskNo.Text; |
|
|
_entity.AskBillNum = TextBoxAskNo.Text; |
|
|
} |
|
|
} |
|
|
if (TextPartCode.Text != null) |
|
|
if (TextPartCode.Text != null) |
|
|
{ |
|
|
{ |
|
|
_ls.PartCode = TextPartCode.Text; |
|
|
_entity.PartCode = TextPartCode.Text; |
|
|
} |
|
|
} |
|
|
if (TextPartName.Text != null) |
|
|
if (TextPartName.Text != null) |
|
|
{ |
|
|
{ |
|
|
_ls.PartDesc1 = TextPartName.Text; |
|
|
_entity.PartDesc1 = TextPartName.Text; |
|
|
} |
|
|
} |
|
|
if (!string.IsNullOrEmpty(CurrentUser.Name)) |
|
|
if (!string.IsNullOrEmpty(CurrentUser.Name)) |
|
|
{ |
|
|
{ |
|
@ -198,25 +202,29 @@ namespace SCP.PlanData |
|
|
btn_planner.Hidden = false; |
|
|
btn_planner.Hidden = false; |
|
|
if (!string.IsNullOrEmpty(this.txt_Planner.Text)) |
|
|
if (!string.IsNullOrEmpty(this.txt_Planner.Text)) |
|
|
{ |
|
|
{ |
|
|
_ls.Buyer = txt_Planner.Text; |
|
|
_entity.Buyer = txt_Planner.Text; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
//}
|
|
|
//}
|
|
|
} |
|
|
} |
|
|
//}
|
|
|
//}
|
|
|
_ls.SendState = int.Parse(rb_SendState.SelectedValue); |
|
|
_entity.SendState = int.Parse(rb_SendState.SelectedValue); |
|
|
_ls.DayState = int.Parse(ddl_DayState.SelectedValue); |
|
|
_entity.DayState = int.Parse(ddl_DayState.SelectedValue); |
|
|
_ls.IsDeleted = false; |
|
|
_entity.IsDeleted = false; |
|
|
_ls.UserInAddress = CurrentUser.FactoryList; |
|
|
_entity.Site = CurrentUser.UsedDomain; |
|
|
_ls.UserInVendIds = CurrentUser.VenderList; |
|
|
if (CurrentUser.VenderList.Count > 0) |
|
|
_ls.UserInSubSite = CurrentUser.SubSiteList; |
|
|
{ |
|
|
|
|
|
_entity.VendId = CurrentUser.VenderList.FirstOrDefault(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
_entity.SubSite = CurrentUser.UserdSite; |
|
|
|
|
|
|
|
|
if (CurrentUser.RoleList.Contains("供应商") && CurrentUser.VenderList.Count == 0) |
|
|
if (CurrentUser.RoleList.Contains("供应商") && CurrentUser.VenderList.Count == 0) |
|
|
{ |
|
|
{ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
//_ls.DayState = int.Parse(ddl_DayState.SelectedValue);
|
|
|
//_ls.DayState = int.Parse(ddl_DayState.SelectedValue);
|
|
|
SCP_ASK_CONTROLLER.Get_V_TB_ASK_ASN_View_List(_ls, (ret) => |
|
|
SCP_ASK_CONTROLLER.Get_V_TB_ASK_ASN_View_List_Directly(_entity, (ret) => |
|
|
{ |
|
|
{ |
|
|
if (ret.State == ReturnStatus.Succeed) |
|
|
if (ret.State == ReturnStatus.Succeed) |
|
|
{ |
|
|
{ |
|
|