|
|
@ -47,7 +47,8 @@ namespace SCP.SupplierData |
|
|
|
V_TB_ASN_DETAIL _entity = new V_TB_ASN_DETAIL(); |
|
|
|
_entity.UserInAddress = CurrentUser.FactoryList; |
|
|
|
_entity.AsnBillNum = Request["AsnBillNum"]; |
|
|
|
SCP_ASN_CONTROLLER.Get_V_TB_ASN_DETAIL_List(_entity, (_ret) => { |
|
|
|
SCP_ASN_CONTROLLER.Get_V_TB_ASN_DETAIL_List(_entity, (_ret) => |
|
|
|
{ |
|
|
|
if (_ret.State == ReturnStatus.Succeed) |
|
|
|
{ |
|
|
|
p_action(_ret.Result); |
|
|
@ -76,7 +77,7 @@ namespace SCP.SupplierData |
|
|
|
TXT_VendName.Text = _result.VendName; |
|
|
|
DP_ReceiveTime.SelectedDate = _result.ReceiveTime; |
|
|
|
DP_ShipTime.SelectedDate = _result.ShipTime; |
|
|
|
TXT_StateDesc.Text = _result.State_DESC; |
|
|
|
TXT_StateDesc.Text = GetResourceKey(_result.State_DESC); |
|
|
|
if (_result.State == (int)AsnState.Ship) |
|
|
|
{ |
|
|
|
string la = GetCurrentLanguage(); |
|
|
@ -99,7 +100,8 @@ namespace SCP.SupplierData |
|
|
|
btnException2.Hidden = true; |
|
|
|
} |
|
|
|
} |
|
|
|
SCP_BARCODE_CONTROLLER.Get_TS_BARCODE_List(new TS_BARCODE() { BillNum= TXT_AsnBillNum.Text.Trim() }, retobj => { |
|
|
|
SCP_BARCODE_CONTROLLER.Get_TS_BARCODE_List(new TS_BARCODE() { BillNum = TXT_AsnBillNum.Text.Trim() }, retobj => |
|
|
|
{ |
|
|
|
if (retobj.State == ReturnStatus.Succeed) |
|
|
|
{ |
|
|
|
if (retobj.Result.Count() > 0) |
|
|
@ -128,7 +130,8 @@ namespace SCP.SupplierData |
|
|
|
btnSend.Hidden = true; |
|
|
|
btnCancel.Hidden = true; |
|
|
|
} |
|
|
|
SearchV_TB_ASN_DETAILData((ret) => { |
|
|
|
SearchV_TB_ASN_DETAILData((ret) => |
|
|
|
{ |
|
|
|
Grid_V_TB_ASN_DETAIL.RecordCount = ret.Count(); |
|
|
|
var list = SortAndPage<V_TB_ASN_DETAIL>(ret, Grid_V_TB_ASN_DETAIL); |
|
|
|
Grid_V_TB_ASN_DETAIL.DataSource = list; |
|
|
@ -550,7 +553,8 @@ namespace SCP.SupplierData |
|
|
|
|
|
|
|
#region 计算托盘数量和发货数量是否相等
|
|
|
|
|
|
|
|
SearchV_TB_ASN_DETAILData((ret) => { |
|
|
|
SearchV_TB_ASN_DETAILData((ret) => |
|
|
|
{ |
|
|
|
|
|
|
|
var _asn = Session["Asn"] as V_TB_ASN; |
|
|
|
if (_asn == null) |
|
|
@ -562,7 +566,8 @@ namespace SCP.SupplierData |
|
|
|
|
|
|
|
var _ls = SCP_ASN_CONTROLLER.Get_CAN_PALLET_QTY(ret.ToList()); |
|
|
|
var _errList = new List<string>(); |
|
|
|
_ls.ForEach(p => { |
|
|
|
_ls.ForEach(p => |
|
|
|
{ |
|
|
|
if (p.CanQty > 0) |
|
|
|
{ |
|
|
|
_errList.Add(string.Format("编号:{0}名称:{1},托盘数量总和小于发货单数量", p.PartCode, (p.PartDesc1 + p.PartDesc2))); |
|
|
|