DS7_JingHan
hanxuntao 2 years ago
parent d19d5cbc42
commit 00a20d263c

@ -4542,7 +4542,7 @@ namespace DSWeb.MvcShipping.DAL.Chfee_AuditDAL
if (bill.OPTYPE == "更改单") if (bill.OPTYPE == "更改单")
{ {
if (SUBMITFEEBLFEELOCK == "1") if (SUBMITFEEBLFEELOCK == "1")
_Comm = "UPDATE OP_AMEND SET BillFeeStatus=1,BILLFEESTATUSTIME=GETDATE(),FEESTATUS=1 WHERE BSNO=@BSNO"; _Comm = "UPDATE OP_AMEND SET BillFeeStatus=1,BILLFEESTATUSTIME=GETDATE() WHERE BSNO=@BSNO";
else _Comm = "UPDATE OP_AMEND SET BillFeeStatus=1,BILLFEESTATUSTIME=GETDATE() WHERE BSNO=@BSNO"; else _Comm = "UPDATE OP_AMEND SET BillFeeStatus=1,BILLFEESTATUSTIME=GETDATE() WHERE BSNO=@BSNO";
} }
else else
@ -4568,7 +4568,7 @@ namespace DSWeb.MvcShipping.DAL.Chfee_AuditDAL
else else
{ {
if (SUBMITFEEBLFEELOCK == "1") if (SUBMITFEEBLFEELOCK == "1")
_Comm = "UPDATE " + bill.OPLB + " SET BillFeeStatus=1,BILLFEESTATUSTIME=GETDATE(),FEESTATUS=1 WHERE BSNO=@BSNO"; _Comm = "UPDATE " + bill.OPLB + " SET BillFeeStatus=1,BILLFEESTATUSTIME=GETDATE() WHERE BSNO=@BSNO";
else _Comm = "UPDATE " + bill.OPLB + " SET BillFeeStatus=1,BILLFEESTATUSTIME=GETDATE() WHERE BSNO=@BSNO"; else _Comm = "UPDATE " + bill.OPLB + " SET BillFeeStatus=1,BILLFEESTATUSTIME=GETDATE() WHERE BSNO=@BSNO";
} }
} }
@ -4691,7 +4691,7 @@ namespace DSWeb.MvcShipping.DAL.Chfee_AuditDAL
} }
else else
{ {
_Comm = "UPDATE " + bill.OPLB + " SET BillFeeStatus=0,FEESTATUS=0,BILLFEESTATUSTIME=null WHERE BSNO=@BSNO"; _Comm = "UPDATE " + bill.OPLB + " SET BillFeeStatus=0,FEESTATUS=0,BILLFEESTATUSTIME=null,FEESTATUS=0 WHERE BSNO=@BSNO";
} }
} }
_feeComm = "update ch_fee set FEESTATUS=1 where FEESTATUS=2 AND BSNO=@BSNO"; _feeComm = "update ch_fee set FEESTATUS=1 where FEESTATUS=2 AND BSNO=@BSNO";
@ -4785,7 +4785,7 @@ namespace DSWeb.MvcShipping.DAL.Chfee_AuditDAL
//string strCwACCDATE = period.PERIOD; //string strCwACCDATE = period.PERIOD;
if (bill.OPTYPE == "更改单") if (bill.OPTYPE == "更改单")
{ {
_Comm = "UPDATE OP_AMEND SET BillFeeStatus=2 WHERE BSNO=@BSNO"; _Comm = "UPDATE OP_AMEND SET BillFeeStatus=2,FEESTATUS=1 WHERE BSNO=@BSNO";
} }
else else
{ {
@ -4803,7 +4803,7 @@ namespace DSWeb.MvcShipping.DAL.Chfee_AuditDAL
} }
else else
{ {
_Comm = "UPDATE " + bill.OPLB + " SET BillFeeStatus=2 WHERE BSNO=@BSNO"; _Comm = "UPDATE " + bill.OPLB + " SET BillFeeStatus=2,FEESTATUS=1 WHERE BSNO=@BSNO";
} }
} }
_feeComm = "update ch_fee set FEESTATUS=0 where FEESTATUS=2 AND BSNO=@BSNO"; _feeComm = "update ch_fee set FEESTATUS=0 where FEESTATUS=2 AND BSNO=@BSNO";

@ -5282,6 +5282,8 @@ Ext.extend(Shipping.FeeEditGrid, Ext.Panel, {
var FeeStatus = record.data.FeeStatus; var FeeStatus = record.data.FeeStatus;
var CustomerName = record.data.CustomerName; var CustomerName = record.data.CustomerName;
var CUSTID = record.data.CUSTID;
var CustomerFullName = record.data.CustomerFullName;
var GId = record.data.GId; var GId = record.data.GId;
if (FeeStatus == 3) { if (FeeStatus == 3) {
this.NewFeeShowDr.setVisible(true); this.NewFeeShowDr.setVisible(true);
@ -5334,6 +5336,7 @@ Ext.extend(Shipping.FeeEditGrid, Ext.Panel, {
CustCode: CustomerName, CustCode: CustomerName,
CustName: CustomerName, CustName: CustomerName,
CodeAndName: CustomerName, CodeAndName: CustomerName,
CodeAndFull: CUSTID + '-' + custname + '★' + CustomerFullName,
DESCRIPTION: CustomerName DESCRIPTION: CustomerName
}); });
_thisfee.storeCustomerNameRefM.add(recordCustCode); _thisfee.storeCustomerNameRefM.add(recordCustCode);
@ -5395,6 +5398,8 @@ Ext.extend(Shipping.FeeEditGrid, Ext.Panel, {
var FeeStatus = record.data.FeeStatus; var FeeStatus = record.data.FeeStatus;
var CustomerName = record.data.CustomerName; var CustomerName = record.data.CustomerName;
var CUSTID = record.data.CUSTID;
var CustomerFullName = record.data.CustomerFullName;
var GId = record.data.GId; var GId = record.data.GId;
if (FeeStatus == 3) { if (FeeStatus == 3) {
this.NewFeeShowCr.setVisible(true); this.NewFeeShowCr.setVisible(true);
@ -5441,6 +5446,7 @@ Ext.extend(Shipping.FeeEditGrid, Ext.Panel, {
CustCode: CustomerName, CustCode: CustomerName,
CustName: CustomerName, CustName: CustomerName,
CodeAndName: CustomerName, CodeAndName: CustomerName,
CodeAndFull: CUSTID + '-' + custname + '★' + CustomerFullName,
DESCRIPTION: CustomerName DESCRIPTION: CustomerName
}); });
_thisfee.storeCustomerNameRefM.add(recordCustCode); _thisfee.storeCustomerNameRefM.add(recordCustCode);
@ -5466,14 +5472,17 @@ Ext.extend(Shipping.FeeEditGrid, Ext.Panel, {
} else { } else {
var rec = selections[0]; var rec = selections[0];
var custname = rec.data.CustomerName; var custname = rec.data.CustomerName;
var CUSTID = rec.data.CUSTID;
var CustomerFullName = rec.data.CustomerFullName;
var selectrecords = DsStoreQueryBy(_thisfee.storeCustomerNameRefDr, 'CustName', custname); var selectrecords = DsStoreQueryBy(_thisfee.storeCustomerNameRefDr, 'CustName', custname);
if (selectrecords.getCount() == 0) { if (selectrecords.getCount() == 0) {
var custname = rec.data.CustomerName; var custname = rec.data.CustomerName;
var recordCustCode = Ext.create('DsShipping.ux.CustomRefModel', { var recordCustCode = Ext.create('DsShipping.ux.CustomRefModel', {
GId: NewGuid(), GId: NewGuid(),
CustCode: custname, CustCode: CUSTID,
CustName: custname, CustName: custname,
CodeAndName: custname, CodeAndName: custname,
CodeAndFull: CUSTID + '-' + custname + '★' + CustomerFullName,
DESCRIPTION: custname DESCRIPTION: custname
}); });
_thisfee.storeCustomerNameRefDr.add(recordCustCode); _thisfee.storeCustomerNameRefDr.add(recordCustCode);
@ -5543,13 +5552,16 @@ Ext.extend(Shipping.FeeEditGrid, Ext.Panel, {
} else { } else {
var rec = selections[0]; var rec = selections[0];
var custname = rec.data.CustomerName; var custname = rec.data.CustomerName;
var CUSTID = rec.data.CUSTID;
var CustomerFullName = rec.data.CustomerFullName;
var selectrecords = DsStoreQueryBy(_thisfee.storeCustomerNameRefCr, 'CustName', custname); var selectrecords = DsStoreQueryBy(_thisfee.storeCustomerNameRefCr, 'CustName', custname);
if (selectrecords.getCount() == 0) { if (selectrecords.getCount() == 0) {
var recordCustCode = Ext.create('DsShipping.ux.CustomRefModel', { var recordCustCode = Ext.create('DsShipping.ux.CustomRefModel', {
GId: NewGuid(), GId: NewGuid(),
CustCode: custname, CustCode: CUSTID,
CustName: custname, CustName: custname,
CodeAndName: custname, CodeAndName: custname,
CodeAndFull: CUSTID + '-' + custname + '★' + CustomerFullName,
DESCRIPTION: custname DESCRIPTION: custname
}); });
_thisfee.storeCustomerNameRefCr.add(recordCustCode); _thisfee.storeCustomerNameRefCr.add(recordCustCode);
@ -7012,7 +7024,7 @@ Ext.extend(Shipping.FeeEditGrid, Ext.Panel, {
} }
//DsOpenEditWin("/MvcShipping/MsFeeTemplate/AddFeeIndex", "模板引入费用"); //DsOpenEditWin("/MvcShipping/MsFeeTemplate/AddFeeIndex", "模板引入费用");
window.open('/MvcShipping/MsFeeTemplate/AddFeeIndex', "模板引入费用", "height=700, width=1024, toolbar=no, menubar=no,scrollbars=1, resizable=1,location=no, status=no,Top= " + (screen.height - 750) / 2 + ",Left= " + (screen.width - 1100) / 2); window.open('/MvcShipping/MsFeeTemplate/AddFeeIndex', "模板引入费用", "height=500, width=1024, toolbar=no, menubar=no,scrollbars=1, resizable=1,location=no, status=no,Top=550 " + ",Left= " + (screen.width - 1100) / 2);
// DsOpenEditWin("/MvcShipping/MsFeeTemplate/AddFeeIndex", "模板引入费用"); // DsOpenEditWin("/MvcShipping/MsFeeTemplate/AddFeeIndex", "模板引入费用");
}, },

@ -7,7 +7,7 @@ Shipping.FeeTemplateAdd = function (config) {
}; };
Ext.extend(Shipping.FeeTemplateAdd, Ext.Panel, { Ext.extend(Shipping.FeeTemplateAdd, Ext.Panel, {
PageSize: 100, PageSize: 20,
ParentWin: null, ParentWin: null,
feeType: 0, feeType: 0,
feeTypeRef: '', feeTypeRef: '',
@ -52,7 +52,7 @@ Ext.extend(Shipping.FeeTemplateAdd, Ext.Panel, {
store: this.storeList, store: this.storeList,
enableHdMenu: false, enableHdMenu: false,
region: 'north', region: 'north',
height: 350, height: 150,
loadMask: { msg: "数据加载中,请稍等..." }, loadMask: { msg: "数据加载中,请稍等..." },
trackMouseOver: true, trackMouseOver: true,
disableSelection: false, disableSelection: false,
@ -750,6 +750,11 @@ Ext.extend(Shipping.FeeTemplateAdd, Ext.Panel, {
if (this.stroplb != 'op_truck') { if (this.stroplb != 'op_truck') {
this.parentWin.onPostDetailClick(NaN, NaN, this.feeType); this.parentWin.onPostDetailClick(NaN, NaN, this.feeType);
this.parentWin.feeDrGridCheckBoxModel.selectAll();
this.parentWin.feeCrGridCheckBoxModel.selectAll();
this.parentWin.feeDrGridCheckBoxModel.deselectAll();
this.parentWin.feeCrGridCheckBoxModel.deselectAll();
this.parentWin.calcDetailTotal(); this.parentWin.calcDetailTotal();
} else { } else {

@ -203,49 +203,49 @@ Ext.extend(Shipping.MsOpAireEdit, Ext.Panel, {
if (records.length > 0) { if (records.length > 0) {
var data = combo.value; var data = combo.value;
this.formHead.getForm().findField('SALE').setValue(records[0].data.SALE); this.formHead.getForm().findField('SALE').setValue(records[0].data.SALE);
var s = " ISOPERATOR=1 and LINKID in (select gid from [info_client] where SHORTNAME='" + combo.value + "')"; //var s = " ISOPERATOR=1 and LINKID in (select gid from [info_client] where SHORTNAME='" + combo.value + "')";
this.storeInfoClientContact.load({ params: { condition: s }, //this.storeInfoClientContact.load({ params: { condition: s },
callback: function (r, options, success) { // callback: function (r, options, success) {
if (success) { // if (success) {
if (this.storeInfoClientContact.getCount() > 0) { // if (this.storeInfoClientContact.getCount() > 0) {
var member = this.storeInfoClientContact.getAt(0); // var member = this.storeInfoClientContact.getAt(0);
this.comboxInfoClientContact.setValue(member.data.SHOWNAME); // this.comboxInfoClientContact.setValue(member.data.SHOWNAME);
// this.formHead.getForm().findField('OPERATOREMAIL').setValue(member.data.EMAIL); // // this.formHead.getForm().findField('OPERATOREMAIL').setValue(member.data.EMAIL);
this.formHead.getForm().findField('OPERATORTEL').setValue(member.data.TEL); // this.formHead.getForm().findField('OPERATORTEL').setValue(member.data.TEL);
// this.formHead.getForm().findField('OPERATORFAX').setValue(member.data.FAX); // // this.formHead.getForm().findField('OPERATORFAX').setValue(member.data.FAX);
} else { // } else {
this.comboxInfoClientContact.setValue(''); // this.comboxInfoClientContact.setValue('');
// this.formHead.getForm().findField('OPERATOREMAIL').setValue(''); // // this.formHead.getForm().findField('OPERATOREMAIL').setValue('');
this.formHead.getForm().findField('OPERATORTEL').setValue(''); // this.formHead.getForm().findField('OPERATORTEL').setValue('');
// this.formHead.getForm().findField('OPERATORFAX').setValue(''); // // this.formHead.getForm().findField('OPERATORFAX').setValue('');
} // }
} // }
}, // },
scope: this // scope: this
}); //});
var sF = " ISFINANCIALSTAFF=1 and LINKID in (select gid from [info_client] where SHORTNAME='" + combo.value + "')"; //var sF = " ISFINANCIALSTAFF=1 and LINKID in (select gid from [info_client] where SHORTNAME='" + combo.value + "')";
this.storeInfoClientContactFF.load({ params: { condition: sF }, //this.storeInfoClientContactFF.load({ params: { condition: sF },
callback: function (r, options, success) { // callback: function (r, options, success) {
if (success) { // if (success) {
if (this.storeInfoClientContactFF.getCount() > 0) { // if (this.storeInfoClientContactFF.getCount() > 0) {
var member = this.storeInfoClientContactFF.getAt(0); // var member = this.storeInfoClientContactFF.getAt(0);
this.comboxClientFCContact.setValue(member.data.SHOWNAME); // this.comboxClientFCContact.setValue(member.data.SHOWNAME);
// this.formHead.getForm().findField('FINANCIALSTAFFEMAIL').setValue(member.data.EMAIL); // // this.formHead.getForm().findField('FINANCIALSTAFFEMAIL').setValue(member.data.EMAIL);
this.formHead.getForm().findField('FINANCIALSTAFFTEL').setValue(member.data.TEL); // this.formHead.getForm().findField('FINANCIALSTAFFTEL').setValue(member.data.TEL);
// this.formHead.getForm().findField('FINANCIALSTAFFFAX').setValue(member.data.FAX); // // this.formHead.getForm().findField('FINANCIALSTAFFFAX').setValue(member.data.FAX);
} else { // } else {
this.comboxClientFCContact.setValue(''); // this.comboxClientFCContact.setValue('');
// this.formHead.getForm().findField('FINANCIALSTAFFEMAIL').setValue(''); // // this.formHead.getForm().findField('FINANCIALSTAFFEMAIL').setValue('');
this.formHead.getForm().findField('FINANCIALSTAFFTEL').setValue(''); // this.formHead.getForm().findField('FINANCIALSTAFFTEL').setValue('');
// this.formHead.getForm().findField('FINANCIALSTAFFFAX').setValue(''); // // this.formHead.getForm().findField('FINANCIALSTAFFFAX').setValue('');
} // }
} // }
}, // },
scope: this // scope: this
}); //});
this.storeShipper.load({ params: { condition: "shippertype=2 AND (ISPUBLIC=1 OR CODENAME IN (SELECT CODENAME FROM info_client WHERE SHORTNAME='" + combo.value + "') )"} }); this.storeShipper.load({ params: { condition: "shippertype=2 AND (ISPUBLIC=1 OR CODENAME IN (SELECT CODENAME FROM info_client WHERE SHORTNAME='" + combo.value + "') )"} });
this.storeConsignee.load({ params: { condition: "shippertype=1 AND (ISPUBLIC=1 OR CODENAME IN (SELECT CODENAME FROM info_client WHERE SHORTNAME='" + combo.value + "') )"} }); this.storeConsignee.load({ params: { condition: "shippertype=1 AND (ISPUBLIC=1 OR CODENAME IN (SELECT CODENAME FROM info_client WHERE SHORTNAME='" + combo.value + "') )"} });
@ -2993,10 +2993,10 @@ Ext.extend(Shipping.MsOpAireEdit, Ext.Panel, {
if (success) { if (success) {
var result = Ext.JSON.decode(response.responseText); var result = Ext.JSON.decode(response.responseText);
if (result.Success) { if (result.Success) {
_this.formHead.getForm().findField('HBLNO').setDisabled(false); //_this.formHead.getForm().findField('HBLNO').setDisabled(false);
btnGetHblNo.setDisabled(false); btnGetHblNo.setDisabled(false);
} else { } else {
_this.formHead.getForm().findField('HBLNO').setDisabled(true); //_this.formHead.getForm().findField('HBLNO').setDisabled(true);
btnGetHblNo.setDisabled(true); btnGetHblNo.setDisabled(true);
} }
} }

@ -196,49 +196,49 @@ Ext.extend(Shipping.MsOpAiriEdit, Ext.Panel, {
if (records.length > 0) { if (records.length > 0) {
var data = combo.value; var data = combo.value;
this.formHead.getForm().findField('SALE').setValue(records[0].data.SALE); this.formHead.getForm().findField('SALE').setValue(records[0].data.SALE);
var s = " ISOPERATOR=1 and LINKID in (select gid from [info_client] where SHORTNAME='" + combo.value + "')"; //var s = " ISOPERATOR=1 and LINKID in (select gid from [info_client] where SHORTNAME='" + combo.value + "')";
this.storeInfoClientContact.load({ params: { condition: s }, //this.storeInfoClientContact.load({ params: { condition: s },
callback: function (r, options, success) { // callback: function (r, options, success) {
if (success) { // if (success) {
if (this.storeInfoClientContact.getCount() > 0) { // if (this.storeInfoClientContact.getCount() > 0) {
var member = this.storeInfoClientContact.getAt(0); // var member = this.storeInfoClientContact.getAt(0);
this.comboxInfoClientContact.setValue(member.data.SHOWNAME); // this.comboxInfoClientContact.setValue(member.data.SHOWNAME);
// this.formHead.getForm().findField('OPERATOREMAIL').setValue(member.data.EMAIL); // // this.formHead.getForm().findField('OPERATOREMAIL').setValue(member.data.EMAIL);
this.formHead.getForm().findField('OPERATORTEL').setValue(member.data.TEL); // this.formHead.getForm().findField('OPERATORTEL').setValue(member.data.TEL);
// this.formHead.getForm().findField('OPERATORFAX').setValue(member.data.FAX); // // this.formHead.getForm().findField('OPERATORFAX').setValue(member.data.FAX);
} else { // } else {
this.comboxInfoClientContact.setValue(''); // this.comboxInfoClientContact.setValue('');
// this.formHead.getForm().findField('OPERATOREMAIL').setValue(''); // // this.formHead.getForm().findField('OPERATOREMAIL').setValue('');
this.formHead.getForm().findField('OPERATORTEL').setValue(''); // this.formHead.getForm().findField('OPERATORTEL').setValue('');
// this.formHead.getForm().findField('OPERATORFAX').setValue(''); // // this.formHead.getForm().findField('OPERATORFAX').setValue('');
} // }
} // }
}, // },
scope: this // scope: this
}); //});
var sF = " ISFINANCIALSTAFF=1 and LINKID in (select gid from [info_client] where SHORTNAME='" + combo.value + "')"; //var sF = " ISFINANCIALSTAFF=1 and LINKID in (select gid from [info_client] where SHORTNAME='" + combo.value + "')";
this.storeInfoClientContactFF.load({ params: { condition: sF }, //this.storeInfoClientContactFF.load({ params: { condition: sF },
callback: function (r, options, success) { // callback: function (r, options, success) {
if (success) { // if (success) {
if (this.storeInfoClientContactFF.getCount() > 0) { // if (this.storeInfoClientContactFF.getCount() > 0) {
var member = this.storeInfoClientContactFF.getAt(0); // var member = this.storeInfoClientContactFF.getAt(0);
this.comboxClientFCContact.setValue(member.data.SHOWNAME); // this.comboxClientFCContact.setValue(member.data.SHOWNAME);
// this.formHead.getForm().findField('FINANCIALSTAFFEMAIL').setValue(member.data.EMAIL); // // this.formHead.getForm().findField('FINANCIALSTAFFEMAIL').setValue(member.data.EMAIL);
this.formHead.getForm().findField('FINANCIALSTAFFTEL').setValue(member.data.TEL); // this.formHead.getForm().findField('FINANCIALSTAFFTEL').setValue(member.data.TEL);
// this.formHead.getForm().findField('FINANCIALSTAFFFAX').setValue(member.data.FAX); // // this.formHead.getForm().findField('FINANCIALSTAFFFAX').setValue(member.data.FAX);
} else { // } else {
this.comboxClientFCContact.setValue(''); // this.comboxClientFCContact.setValue('');
// this.formHead.getForm().findField('FINANCIALSTAFFEMAIL').setValue(''); // // this.formHead.getForm().findField('FINANCIALSTAFFEMAIL').setValue('');
this.formHead.getForm().findField('FINANCIALSTAFFTEL').setValue(''); // this.formHead.getForm().findField('FINANCIALSTAFFTEL').setValue('');
// this.formHead.getForm().findField('FINANCIALSTAFFFAX').setValue(''); // // this.formHead.getForm().findField('FINANCIALSTAFFFAX').setValue('');
} // }
} // }
}, // },
scope: this // scope: this
}); //});
this.storeShipper.load({ params: { condition: "shippertype=2 AND (ISPUBLIC=1 OR CODENAME IN (SELECT CODENAME FROM info_client WHERE SHORTNAME='" + combo.value + "') )"} }); this.storeShipper.load({ params: { condition: "shippertype=2 AND (ISPUBLIC=1 OR CODENAME IN (SELECT CODENAME FROM info_client WHERE SHORTNAME='" + combo.value + "') )"} });
this.storeConsignee.load({ params: { condition: "shippertype=1 AND (ISPUBLIC=1 OR CODENAME IN (SELECT CODENAME FROM info_client WHERE SHORTNAME='" + combo.value + "') )"} }); this.storeConsignee.load({ params: { condition: "shippertype=1 AND (ISPUBLIC=1 OR CODENAME IN (SELECT CODENAME FROM info_client WHERE SHORTNAME='" + combo.value + "') )"} });

@ -1065,6 +1065,11 @@ Ext.extend(Shipping.SeaeHistryFee, Ext.Panel, {
this.parentWin.onPostDetailClick(NaN, NaN, this.feeType); this.parentWin.onPostDetailClick(NaN, NaN, this.feeType);
this.parentWin.calcDetailTotal(); this.parentWin.calcDetailTotal();
this.parentWin.feeDrGridCheckBoxModel.selectAll();
this.parentWin.feeCrGridCheckBoxModel.selectAll();
this.parentWin.feeDrGridCheckBoxModel.deselectAll();
this.parentWin.feeCrGridCheckBoxModel.deselectAll();
// this.StoreFee.selected.selectAll(); // this.StoreFee.selected.selectAll();
//if (this.feeType == 1) { //if (this.feeType == 1) {
// this.parentWin.gridDrChFee.getSelectionModel().selectAll(); // this.parentWin.gridDrChFee.getSelectionModel().selectAll();

@ -310,24 +310,24 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
if (selectdata.BSSOURCE != '') { if (selectdata.BSSOURCE != '') {
this.formHead.getForm().findField('BSSOURCE').setValue(selectdata.BSSOURCE); this.formHead.getForm().findField('BSSOURCE').setValue(selectdata.BSSOURCE);
} }
var s = " ISOPERATOR=1 and LINKID in (select gid from [info_client] where SHORTNAME='" + selectdata.CustName + "')"; //var s = " ISOPERATOR=1 and LINKID in (select gid from [info_client] where SHORTNAME='" + selectdata.CustName + "')";
this.storeInfoClientContact.load({ //this.storeInfoClientContact.load({
params: { condition: s }, // params: { condition: s },
callback: function (r, options, success) { // callback: function (r, options, success) {
if (success) { // if (success) {
if (this.storeInfoClientContact.getCount() > 0) { // if (this.storeInfoClientContact.getCount() > 0) {
var member = this.storeInfoClientContact.getAt(0); // var member = this.storeInfoClientContact.getAt(0);
this.comboxInfoClientContact.setValue(member.data.SHOWNAME); // this.comboxInfoClientContact.setValue(member.data.SHOWNAME);
this.formHead.getForm().findField('OPERATORTEL').setValue(member.data.TEL); // this.formHead.getForm().findField('OPERATORTEL').setValue(member.data.TEL);
} else { // } else {
this.comboxInfoClientContact.setValue(''); // this.comboxInfoClientContact.setValue('');
this.formHead.getForm().findField('OPERATORTEL').setValue(''); // this.formHead.getForm().findField('OPERATORTEL').setValue('');
} // }
} // }
}, // },
scope: this // scope: this
}); //});
} }
@ -352,9 +352,9 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
_this.storeOpCode2.add(recordCustCode); _this.storeOpCode2.add(recordCustCode);
this.formHead.getForm().findField('SALE').setValue(records[0].data.SALE); this.formHead.getForm().findField('SALE').setValue(records[0].data.SALE);
if (records[0].data.OP != '') { //if (records[0].data.OP != '') {
this.formHead.getForm().findField('OP').setValue(records[0].data.OP); // this.formHead.getForm().findField('OP').setValue(records[0].data.OP);
} //}
if (this.formHead.getForm().findField('SERVICECONTRACTNO').getValue() == '' && records[0].data.CONTRACTNO != '') { if (this.formHead.getForm().findField('SERVICECONTRACTNO').getValue() == '' && records[0].data.CONTRACTNO != '') {
this.formHead.getForm().findField('SERVICECONTRACTNO').setValue(records[0].data.CONTRACTNO); this.formHead.getForm().findField('SERVICECONTRACTNO').setValue(records[0].data.CONTRACTNO);
@ -374,55 +374,55 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
BSSOURCEDETAIL.setValue(''); BSSOURCEDETAIL.setValue('');
} }
} }
var s = " ISOPERATOR=1 and LINKID in (select gid from [info_client] where SHORTNAME='" + combo.value + "')"; //var s = " ISOPERATOR=1 and LINKID in (select gid from [info_client] where SHORTNAME='" + combo.value + "')";
this.storeInfoClientContact.load({ //this.storeInfoClientContact.load({
params: { condition: s }, // params: { condition: s },
callback: function (r, options, success) { // callback: function (r, options, success) {
if (success) { // if (success) {
if (this.storeInfoClientContact.getCount() > 0) { // if (this.storeInfoClientContact.getCount() > 0) {
var member = this.storeInfoClientContact.getAt(0); // var member = this.storeInfoClientContact.getAt(0);
this.comboxInfoClientContact.setValue(member.data.SHOWNAME); // this.comboxInfoClientContact.setValue(member.data.SHOWNAME);
this.formHead.getForm().findField('OPERATORTEL').setValue(member.data.TEL); // this.formHead.getForm().findField('OPERATORTEL').setValue(member.data.TEL);
} else { // } else {
this.comboxInfoClientContact.setValue(''); // this.comboxInfoClientContact.setValue('');
this.formHead.getForm().findField('OPERATORTEL').setValue(''); // this.formHead.getForm().findField('OPERATORTEL').setValue('');
} // }
} // }
}, // },
scope: this // scope: this
}); //});
var sF = " ISFINANCIALSTAFF=1 and LINKID in (select gid from [info_client] where SHORTNAME='" + combo.value + "')"; //var sF = " ISFINANCIALSTAFF=1 and LINKID in (select gid from [info_client] where SHORTNAME='" + combo.value + "')";
this.storeInfoClientContactFF.load({ //this.storeInfoClientContactFF.load({
params: { condition: sF }, // params: { condition: sF },
callback: function (r, options, success) { // callback: function (r, options, success) {
if (success) { // if (success) {
if (this.storeInfoClientContactFF.getCount() > 0) { // if (this.storeInfoClientContactFF.getCount() > 0) {
var member = this.storeInfoClientContactFF.getAt(0); // var member = this.storeInfoClientContactFF.getAt(0);
this.comboxClientFCContact.setValue(member.data.SHOWNAME); // this.comboxClientFCContact.setValue(member.data.SHOWNAME);
} else { // } else {
this.comboxClientFCContact.setValue(''); // this.comboxClientFCContact.setValue('');
} // }
} // }
}, // },
scope: this // scope: this
}); //});
var sF = " ISINSURANCE=1 and LINKID in (select gid from [info_client] where SHORTNAME='" + combo.value + "')"; //var sF = " ISINSURANCE=1 and LINKID in (select gid from [info_client] where SHORTNAME='" + combo.value + "')";
this.storeInfoClientContactIN.load({ //this.storeInfoClientContactIN.load({
params: { condition: sF }, // params: { condition: sF },
callback: function (r, options, success) { // callback: function (r, options, success) {
if (success) { // if (success) {
if (this.storeInfoClientContactIN.getCount() > 0) { // if (this.storeInfoClientContactIN.getCount() > 0) {
var member = this.storeInfoClientContactIN.getAt(0); // var member = this.storeInfoClientContactIN.getAt(0);
this.comboxClientContactIN.setValue(member.data.SHOWNAME); // this.comboxClientContactIN.setValue(member.data.SHOWNAME);
} else { // } else {
this.comboxClientContactIN.setValue(''); // this.comboxClientContactIN.setValue('');
} // }
} // }
}, // },
scope: this // scope: this
}); //});
if (this.formEdit.getForm().findField('SHIPPER').getValue() == '') { if (this.formEdit.getForm().findField('SHIPPER').getValue() == '') {
this.storeShipper.load({ this.storeShipper.load({
@ -15621,10 +15621,10 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
if (success) { if (success) {
var result = Ext.JSON.decode(response.responseText); var result = Ext.JSON.decode(response.responseText);
if (result.Success) { if (result.Success) {
_this.formHead.getForm().findField('HBLNO').setDisabled(false); // _this.formHead.getForm().findField('HBLNO').setDisabled(false);
btnGetHblNo.setDisabled(false); btnGetHblNo.setDisabled(false);
} else { } else {
_this.formHead.getForm().findField('HBLNO').setDisabled(true); // _this.formHead.getForm().findField('HBLNO').setDisabled(true);
btnGetHblNo.setDisabled(true); btnGetHblNo.setDisabled(true);
} }
} }

Loading…
Cancel
Save