hanxuntao 7 months ago
parent 647102094d
commit 1d68514e1f

@ -2962,7 +2962,7 @@ Ext.extend(Shipping.MsChInvoicehexiaoEdit, Ext.Panel, {
return ''; return '';
} }
var sql = ''; var sql = ' F.FEESTATUS IN (0,8,9) ';
var customNo = form.findField('CustomNo').getValue(); var customNo = form.findField('CustomNo').getValue();
sql = sql + getAndConSql(sql, customNo, " (CUSTNO like '%" + customNo + "%' or MBLNO like '%" + customNo + "%' or HBLNO like '%" + customNo + "%' or CUSTOMNO like '%" + customNo + "%' or ORDERNO like '%" + customNo + "%')"); sql = sql + getAndConSql(sql, customNo, " (CUSTNO like '%" + customNo + "%' or MBLNO like '%" + customNo + "%' or HBLNO like '%" + customNo + "%' or CUSTOMNO like '%" + customNo + "%' or ORDERNO like '%" + customNo + "%')");
@ -2983,6 +2983,16 @@ Ext.extend(Shipping.MsChInvoicehexiaoEdit, Ext.Panel, {
var ACCDATETO = form.findField('ACCDATETO').getRawValue(); var ACCDATETO = form.findField('ACCDATETO').getRawValue();
sql = sql + getAndConSql(sql, ACCDATETO, "B.ACCDATE<='" + ACCDATETO + "'"); sql = sql + getAndConSql(sql, ACCDATETO, "B.ACCDATE<='" + ACCDATETO + "'");
var FeeName = form.findField('FeeName').getValue();
sql = sql + getAndConSql(sql, FeeName, "F.FeeName='" + FeeName + "'");
var CUSTNAME = form.findField('CUSTNAME').getValue();
sql = sql + getAndConSql(sql, CUSTNAME, "F.CUSTOMERNAME='" + CUSTNAME + "'");
var DC = form.findField('DC').getValue();
sql = sql + getAndConSql(sql, DC, "FEETYPE=" + DC);
var feesql = ' EXISTS (select 1 from ch_fee where b.BSNO=ch_fee.BSNO and ch_fee.ISINVOICE=0 AND FEESTATUS IN (0,8,9) and (AMOUNT<>(ISNULL(INVOICE,0)+ISNULL(ORDERINVOICE,0))) '; var feesql = ' EXISTS (select 1 from ch_fee where b.BSNO=ch_fee.BSNO and ch_fee.ISINVOICE=0 AND FEESTATUS IN (0,8,9) and (AMOUNT<>(ISNULL(INVOICE,0)+ISNULL(ORDERINVOICE,0))) ';
@ -3001,8 +3011,7 @@ Ext.extend(Shipping.MsChInvoicehexiaoEdit, Ext.Panel, {
var feesql = ' FEESTATUS IN (0,8,9) and (AMOUNT<>(ISNULL(INVOICE,0)+ISNULL(ORDERINVOICE,0))) '; var feesql = ' FEESTATUS IN (0,8,9) and (AMOUNT<>(ISNULL(INVOICE,0)+ISNULL(ORDERINVOICE,0))) ';
var CUSTNAME = form.findField('CUSTNAME').getValue();
feesql = feesql + getAndConSql(feesql, CUSTNAME, "F.CUSTOMERNAME='" + CUSTNAME + "'");
var DC = form.findField('DC').getValue(); var DC = form.findField('DC').getValue();
@ -3012,7 +3021,10 @@ Ext.extend(Shipping.MsChInvoicehexiaoEdit, Ext.Panel, {
feesql = feesql + getAndConSql(feesql, Currency, "Currency='" + Currency + "'"); feesql = feesql + getAndConSql(feesql, Currency, "Currency='" + Currency + "'");
var FeeName = form.findField('FeeName').getValue(); var FeeName = form.findField('FeeName').getValue();
feesql = feesql + getAndConSql(feesql, FeeName, "FeeName='" + FeeName + "'"); feesql = feesql + getAndConSql(feesql, FeeName, "F.FeeName='" + FeeName + "'");
var CUSTNAME = form.findField('CUSTNAME').getValue();
feesql = feesql + getAndConSql(feesql, CUSTNAME, "F.CUSTOMERNAME='" + CUSTNAME + "'");
var ShenNo = form.findField('ShenNo').getValue(); var ShenNo = form.findField('ShenNo').getValue();

@ -2995,7 +2995,7 @@ namespace DSWeb.MvcShipping.Controllers
if (bodyList != null) if (bodyList != null)
{ {
result = MsOpSeaeDAL.Modify(bodyList, amodifydata, Convert.ToString(Session["COMPANYID"])); result = MsOpSeaeDAL.Modify(bodyList, amodifydata, Convert.ToString(Session["COMPANYID"]), Convert.ToString(Session["USERID"]).ToString());
} }
var jsonRespose = new JsonResponse var jsonRespose = new JsonResponse
{ {

@ -18,6 +18,7 @@ using System.Web;
using DSWeb.MvcShipping.DAL.MsOpSeaeEdiPortDAL; using DSWeb.MvcShipping.DAL.MsOpSeaeEdiPortDAL;
using DSWeb.EntityDA; using DSWeb.EntityDA;
using DSWeb.MvcShipping.DAL.MsSysParamSet; using DSWeb.MvcShipping.DAL.MsSysParamSet;
using DSWeb.SoftMng.DAL.SoftSysTable; using DSWeb.SoftMng.DAL.SoftSysTable;
using DSWeb.Areas.Account.DAL.Chfee_Settlement; using DSWeb.Areas.Account.DAL.Chfee_Settlement;

@ -335,9 +335,9 @@ namespace DSWeb.MvcShipping.DAL.MsOpCtnrDAL
var strSql = new StringBuilder(); var strSql = new StringBuilder();
strSql.Append("DELETE FROM op_ctnmng WHERE BSNO='" + items.BSNO + "'"); strSql.Append("DELETE FROM op_ctnmng WHERE BSNO='" + items.BSNO + "'");
SqlHelper.ExecuteNonQuery(sqlTran, CommandType.Text, strSql.ToString(), null); SqlHelper.ExecuteNonQuery(sqlTran, CommandType.Text, strSql.ToString(), null);
var strSql2 = new StringBuilder(); //var strSql2 = new StringBuilder();
strSql2.Append("DELETE FROM op_ctnmng_ctnstatus WHERE BSNO='" + items.BSNO + "'"); //strSql2.Append("DELETE FROM op_ctnmng_ctnstatus WHERE CTNSTATUS IN ('买箱','卖箱') AND BSNO='" + items.BSNO + "'");
SqlHelper.ExecuteNonQuery(sqlTran, CommandType.Text, strSql2.ToString(), null); //SqlHelper.ExecuteNonQuery(sqlTran, CommandType.Text, strSql2.ToString(), null);
} }
@ -393,9 +393,9 @@ namespace DSWeb.MvcShipping.DAL.MsOpCtnrDAL
strSql.Append("DELETE FROM op_ctnmng WHERE BSNO ='" + BSNO + "'"); strSql.Append("DELETE FROM op_ctnmng WHERE BSNO ='" + BSNO + "'");
SqlHelper.ExecuteNonQuery(sqlTran, CommandType.Text, strSql.ToString(), null); SqlHelper.ExecuteNonQuery(sqlTran, CommandType.Text, strSql.ToString(), null);
var strSql2 = new StringBuilder(); //var strSql2 = new StringBuilder();
strSql2.Append("DELETE FROM op_ctnmng_ctnstatus WHERE BSNO ='" + BSNO + "'"); //strSql2.Append("DELETE FROM op_ctnmng_ctnstatus WHERE CTNSTATUS IN ('买箱','卖箱') AND BSNO ='" + BSNO + "'");
SqlHelper.ExecuteNonQuery(sqlTran, CommandType.Text, strSql2.ToString(), null); //SqlHelper.ExecuteNonQuery(sqlTran, CommandType.Text, strSql2.ToString(), null);
sqlTran.Commit(); sqlTran.Commit();
@ -453,9 +453,9 @@ namespace DSWeb.MvcShipping.DAL.MsOpCtnrDAL
strSql.Append("DELETE FROM op_ctnmng WHERE BSNO ='" + head.BSNO + "'"); strSql.Append("DELETE FROM op_ctnmng WHERE BSNO ='" + head.BSNO + "'");
SqlHelper.ExecuteNonQuery(sqlTran, CommandType.Text, strSql.ToString(), null); SqlHelper.ExecuteNonQuery(sqlTran, CommandType.Text, strSql.ToString(), null);
var strSql2 = new StringBuilder(); //var strSql2 = new StringBuilder();
strSql2.Append("DELETE FROM op_ctnmng_ctnstatus WHERE BSNO ='" + head.BSNO + "'"); //strSql2.Append("DELETE FROM op_ctnmng_ctnstatus WHERE CTNSTATUS IN ('买箱','卖箱') AND BSNO ='" + head.BSNO + "'");
SqlHelper.ExecuteNonQuery(sqlTran, CommandType.Text, strSql2.ToString(), null); //SqlHelper.ExecuteNonQuery(sqlTran, CommandType.Text, strSql2.ToString(), null);
sqlTran.Commit(); sqlTran.Commit();
@ -581,9 +581,10 @@ namespace DSWeb.MvcShipping.DAL.MsOpCtnrDAL
var strSqlMng = new StringBuilder(); var strSqlMng = new StringBuilder();
strSqlMng.Append("DELETE FROM op_ctnmng_detail WHERE CTNGID IN (" + ids + ") AND BSNO='" + BSNO + "'"); strSqlMng.Append("DELETE FROM op_ctnmng_detail WHERE CTNGID IN (" + ids + ") AND BSNO='" + BSNO + "'");
SqlHelper.ExecuteNonQuery(sqlTran, CommandType.Text, strSqlMng.ToString(), null); SqlHelper.ExecuteNonQuery(sqlTran, CommandType.Text, strSqlMng.ToString(), null);
var strSql2 = new StringBuilder();
strSql2.Append("DELETE FROM op_ctnmng_ctnstatus WHERE CTNGID IN (" + ids + ") AND BSNO='" + BSNO + "'"); //var strSql2 = new StringBuilder();
SqlHelper.ExecuteNonQuery(sqlTran, CommandType.Text, strSql2.ToString(), null); //strSql2.Append("DELETE FROM op_ctnmng_ctnstatus WHERE CTNSTATUS IN ('买箱','卖箱') AND CTNGID IN (" + ids + ") AND BSNO='" + BSNO + "'");
//SqlHelper.ExecuteNonQuery(sqlTran, CommandType.Text, strSql2.ToString(), null);
result.Success = true; result.Success = true;
@ -706,14 +707,16 @@ namespace DSWeb.MvcShipping.DAL.MsOpCtnrDAL
strSqlCtnr.Append("update op_ctnmng_ctndetail set ISBERETURN=0 where CTNGID in(select CTNGID from op_ctnmng_detail where CTNGID IN (" + ids + ") AND BSNO='" + BSNO + "')"); strSqlCtnr.Append("update op_ctnmng_ctndetail set ISBERETURN=0 where CTNGID in(select CTNGID from op_ctnmng_detail where CTNGID IN (" + ids + ") AND BSNO='" + BSNO + "')");
SqlHelper.ExecuteNonQuery(sqlTran, CommandType.Text, strSqlCtnr.ToString(), null); SqlHelper.ExecuteNonQuery(sqlTran, CommandType.Text, strSqlCtnr.ToString(), null);
} }
if (isdeletectn)
var strSqlMng = new StringBuilder(); {
strSqlMng.Append("DELETE FROM op_ctnmng_detail WHERE CTNGID IN (" + ids + ") AND BSNO='" + BSNO + "'"); var strSqlMng = new StringBuilder();
SqlHelper.ExecuteNonQuery(sqlTran, CommandType.Text, strSqlMng.ToString(), null); strSqlMng.Append("DELETE FROM op_ctnmng_detail WHERE CTNGID IN (" + ids + ") AND BSNO='" + BSNO + "'");
var strSql2 = new StringBuilder(); SqlHelper.ExecuteNonQuery(sqlTran, CommandType.Text, strSqlMng.ToString(), null);
strSql2.Append("DELETE FROM op_ctnmng_ctnstatus WHERE CTNGID IN (" + ids + ") AND BSNO='" + BSNO + "'"); }
SqlHelper.ExecuteNonQuery(sqlTran, CommandType.Text, strSql2.ToString(), null); // var strSql2 = new StringBuilder();
// strSql2.Append("DELETE FROM op_ctnmng_ctnstatus WHERE CTNGID IN (" + ids + ") AND BSNO='" + BSNO + "'");
// SqlHelper.ExecuteNonQuery(sqlTran, CommandType.Text, strSql2.ToString(), null);
//}
result.Success = true; result.Success = true;
result.Message = "删除成功"; result.Message = "删除成功";

@ -1987,7 +1987,18 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
var blUpSQL = " insert into sys_log(GID,NAME,LOGTYPE,LOGTIME,LOGCONTENT,CREATEUSER) values(NEWID(),'" + headData.BSNO + "','提单号更改','" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "','" + headData.MBLNO + '(' +MBLNO + ')' + "','" +userid + "')"; var blUpSQL = " insert into sys_log(GID,NAME,LOGTYPE,LOGTIME,LOGCONTENT,CREATEUSER) values(NEWID(),'" + headData.BSNO + "','提单号更改','" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "','" + headData.MBLNO + '(' +MBLNO + ')' + "','" +userid + "')";
bool bl = T_ALL_DA.GetExecuteSqlCommand(blUpSQL); bool bl = T_ALL_DA.GetExecuteSqlCommand(blUpSQL);
} }
var ETD = T_ALL_DA.GetStrSQL("ETD", "select ETD from OP_SEAE WHERE BSNO='" + headData.BSNO + "'");
if (ETD != headData.ETD)
{
var blUpSQL = " insert into sys_log(GID,NAME,LOGTYPE,LOGTIME,LOGCONTENT,CREATEUSER) values(NEWID(),'" + headData.BSNO + "','ETD更改','" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "','" + headData.ETD + '(' + ETD + ')' + "','" + userid + "')";
bool bl = T_ALL_DA.GetExecuteSqlCommand(blUpSQL);
}
var ACCDATE2 = T_ALL_DA.GetStrSQL("ACCDATE", "select MBLNO from OP_SEAE WHERE BSNO='" + headData.BSNO + "'");
if (ACCDATE2 != headData.ACCDATE)
{
var blUpSQL = " insert into sys_log(GID,NAME,LOGTYPE,LOGTIME,LOGCONTENT,CREATEUSER) values(NEWID(),'" + headData.BSNO + "','会计期间更改','" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "','" + headData.ACCDATE + '(' + ACCDATE2 + ')' + "','" + userid + "')";
bool bl = T_ALL_DA.GetExecuteSqlCommand(blUpSQL);
}
} }
else else
{ {
@ -3672,7 +3683,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
#endregion #endregion
#region 批量修改 #region 批量修改
public static DBResult Modify(List<MsOpSeae> bodyList, MsOpSeae modifydata, string companyid) public static DBResult Modify(List<MsOpSeae> bodyList, MsOpSeae modifydata, string companyid,string userid)
{ {
var result = new DBResult(); var result = new DBResult();
@ -3828,6 +3839,12 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
strSqlBL.Append(" where BSNO=@BSNO "); strSqlBL.Append(" where BSNO=@BSNO ");
var strSqllog = new StringBuilder();
strSqllog.Append("insert into sys_log(GID,NAME,LOGTYPE,LOGTIME,LOGCONTENT,CREATEUSER) values(newid(),@LOGNAME,@LOGTYPE,@LOGTIME,@LOGCONTENT,@CREATEUSER) ");
var cmdupdateLog =db.GetSqlStringCommand(strSqllog.ToString());
var cmdupdateBL = var cmdupdateBL =
db.GetSqlStringCommand(strSqlBL.ToString()); db.GetSqlStringCommand(strSqlBL.ToString());
var cmdupdate = var cmdupdate =
@ -3948,7 +3965,8 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
if (isPost) if (isPost)
{ {
bool isedt = false;
bool isaccdate = false;
cmdupdate.Parameters.Clear(); cmdupdate.Parameters.Clear();
cmdupdateBL.Parameters.Clear(); cmdupdateBL.Parameters.Clear();
@ -4018,22 +4036,22 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
var day = Convert.ToDateTime(modifydata.ETD).Day; var day = Convert.ToDateTime(modifydata.ETD).Day;
if (day > nowperiod.CLOSEDAY) if (day > nowperiod.CLOSEDAY)
{ {
var ACCDATE = Convert.ToDateTime(modifydata.ETD).AddMonths(1).ToString("yyyy-MM"); modifydata.ACCDATE = Convert.ToDateTime(modifydata.ETD).AddMonths(1).ToString("yyyy-MM");
db.AddInParameter(cmdupdate, "@ACCDATE", DbType.String, ACCDATE); db.AddInParameter(cmdupdate, "@ACCDATE", DbType.String, modifydata.ACCDATE);
} }
else { else {
var ACCDATE = Convert.ToDateTime(modifydata.ETD).ToString("yyyy-MM"); modifydata.ACCDATE = Convert.ToDateTime(modifydata.ETD).ToString("yyyy-MM");
db.AddInParameter(cmdupdate, "@ACCDATE", DbType.String, ACCDATE); db.AddInParameter(cmdupdate, "@ACCDATE", DbType.String, modifydata.ACCDATE);
} }
} }
else else
{ {
var ACCDATE = Convert.ToDateTime(modifydata.ETD).ToString("yyyy-MM"); modifydata.ACCDATE = Convert.ToDateTime(modifydata.ETD).ToString("yyyy-MM");
db.AddInParameter(cmdupdate, "@ACCDATE", DbType.String, ACCDATE); db.AddInParameter(cmdupdate, "@ACCDATE", DbType.String, modifydata.ACCDATE);
} }
isaccdate = true;
} }
isedt = true;
} }
if (modifydata.CLOSINGDATE != "" && modifydata.CLOSINGDATE != null) if (modifydata.CLOSINGDATE != "" && modifydata.CLOSINGDATE != null)
db.AddInParameter(cmdupdate, "@CLOSINGDATE", DbType.String, modifydata.CLOSINGDATE); db.AddInParameter(cmdupdate, "@CLOSINGDATE", DbType.String, modifydata.CLOSINGDATE);
@ -4046,7 +4064,10 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
if (ACCDATESAMEETD != "1") if (ACCDATESAMEETD != "1")
{ {
if (modifydata.ACCDATE != "" && modifydata.ACCDATE != null) if (modifydata.ACCDATE != "" && modifydata.ACCDATE != null)
{
db.AddInParameter(cmdupdate, "@ACCDATE", DbType.String, modifydata.ACCDATE); db.AddInParameter(cmdupdate, "@ACCDATE", DbType.String, modifydata.ACCDATE);
isaccdate = true;
}
} }
if (modifydata.SALEDEPT != "" && modifydata.SALEDEPT != null) if (modifydata.SALEDEPT != "" && modifydata.SALEDEPT != null)
db.AddInParameter(cmdupdate, "@SALEDEPT", DbType.String, modifydata.SALEDEPT); db.AddInParameter(cmdupdate, "@SALEDEPT", DbType.String, modifydata.SALEDEPT);
@ -4098,6 +4119,28 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
db.AddInParameter(cmdupdateBL, "@BSNO", DbType.String, enumValue.BSNO); db.AddInParameter(cmdupdateBL, "@BSNO", DbType.String, enumValue.BSNO);
db.ExecuteNonQuery(cmdupdateBL, tran); db.ExecuteNonQuery(cmdupdateBL, tran);
i = i + 1; i = i + 1;
if (isedt) {
cmdupdateLog.Parameters.Clear();
db.AddInParameter(cmdupdateLog, "@LOGNAME", DbType.String, enumValue.BSNO);
db.AddInParameter(cmdupdateLog, "@LOGTYPE", DbType.String,"更新开船日期 ");
db.AddInParameter(cmdupdateLog, "@LOGTIME", DbType.String, DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
db.AddInParameter(cmdupdateLog, "@LOGCONTENT", DbType.String, modifydata.ETD+"("+enumValue.ETD+")");
db.AddInParameter(cmdupdateLog, "@CREATEUSER", DbType.String, userid);
db.ExecuteNonQuery(cmdupdateLog, tran);
}
if (isedt)
{
cmdupdateLog.Parameters.Clear();
db.AddInParameter(cmdupdateLog, "@LOGNAME", DbType.String, enumValue.BSNO);
db.AddInParameter(cmdupdateLog, "@LOGTYPE", DbType.String, "更新会计期间 ");
db.AddInParameter(cmdupdateLog, "@LOGTIME", DbType.String, DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
db.AddInParameter(cmdupdateLog, "@LOGCONTENT", DbType.String, modifydata.ACCDATE + "(" + enumValue.ACCDATE + ")");
db.AddInParameter(cmdupdateLog, "@CREATEUSER", DbType.String, userid);
db.ExecuteNonQuery(cmdupdateLog, tran);
}
} }
} }

@ -8049,7 +8049,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeEdiDAL
foreach (var ctn in ctnlist) foreach (var ctn in ctnlist)
{ {
r.WriteLine("51:001:" + ctn.CNTRNO + ":" + ctn.SEALNO + ":" + ctn.SIZE.ToString() + ctn.CTN + ":8:" + ctn.PKGS.ToString() r.WriteLine("51:001:" + ctn.CNTRNO + ":" + ctn.SEALNO + ":" + ctn.CTNALL + ":8:" + ctn.PKGS.ToString()
+ ":" + ctn.KGS.ToString() + ":" + ctn.KINDPKGS + ":" + ctn.CBM + ":::::::2'"); + ":" + ctn.KGS.ToString() + ":" + ctn.KINDPKGS + ":" + ctn.CBM + ":::::::2'");
r.WriteLine("52:" + ctn.SEALNO + ":M:CA'"); r.WriteLine("52:" + ctn.SEALNO + ":M:CA'");

@ -291,14 +291,14 @@ Ext.extend(Shipping.MsInfoClientEdit, Ext.Panel, {
}); });
me = this; me = this;
this.StoreStlName = Ext.create('Ext.data.Store', { this.storeStlName = Ext.create('Ext.data.Store', {
fields: ['STLNAME', 'DISPLAYNAME'] fields: ['STLNAME', 'DISPLAYNAME']
}); });
this.StoreStlName.add({ "STLNAME": "月结", "DISPLAYNAME": Zi.LAN.YUEJIE }); this.storeStlName.add({ "STLNAME": "月结", "DISPLAYNAME": Zi.LAN.YUEJIE });
this.StoreStlName.add({ "STLNAME": "半月结", "DISPLAYNAME": Zi.LAN.BANYUEJIE }); this.storeStlName.add({ "STLNAME": "半月结", "DISPLAYNAME": Zi.LAN.BANYUEJIE });
this.StoreStlName.add({ "STLNAME": "约定天数", "DISPLAYNAME": Zi.LAN.YUEDINGTIANSHU }); this.storeStlName.add({ "STLNAME": "约定天数", "DISPLAYNAME": Zi.LAN.YUEDINGTIANSHU });
this.StoreStlName.add({ "STLNAME": "周结", "DISPLAYNAME": Zi.LAN.ZHOUJIE }); this.storeStlName.add({ "STLNAME": "周结", "DISPLAYNAME": Zi.LAN.ZHOUJIE });
this.StoreStlName.add({ "STLNAME": "现结买单", "DISPLAYNAME": Zi.LAN.XIANJIEMAIDAN }); this.storeStlName.add({ "STLNAME": "现结买单", "DISPLAYNAME": Zi.LAN.XIANJIEMAIDAN });
//this.storeStlName.add({ "FRT": "周结" }); //this.storeStlName.add({ "FRT": "周结" });
//this.storeStlName.add({ "FRT": "约定天数" }); //this.storeStlName.add({ "FRT": "约定天数" });

@ -45,6 +45,24 @@ Ext.extend(Shipping.MsOpRailwayIndex, Ext.Panel, {
width: 30 width: 30
}); });
this.Pagenum = Ext.create('Ext.form.field.Number', {
name: 'bottles',
fieldLabel: '每页记录数',
labelAlign: 'right',
value: this.PageSize,
maxValue: 100000,
width: 180,
minValue: 0,
listeners: {
specialkey: function (field, e) {
if (e.getKey() == e.ENTER) {
_this.onRefreshClick();
}
}
}
});
this.initgirdcolums = [{ this.initgirdcolums = [{
sortable: true, sortable: true,
id: '', id: '',
@ -550,12 +568,12 @@ Ext.extend(Shipping.MsOpRailwayIndex, Ext.Panel, {
}, },
columns: this.girdcolums, columns: this.girdcolums,
// paging bar on the bottom // paging bar on the bottom
bbar: Ext.create('Ext.PagingToolbar', { bbar: [Ext.create('Ext.PagingToolbar', {
store: this.storeList, store: this.storeList,
displayInfo: true, displayInfo: true,
displayMsg: '当前显示 {0} - {1}条记录 /共 {2}条记录', displayMsg: '当前显示 {0} - {1}条记录 /共 {2}条记录',
emptyMsg: "没有数据" emptyMsg: "没有数据"
}) }), this.Pagenum]
}); });
/////////////以下部分为获取存储的gridpanel显示样式 /////////////以下部分为获取存储的gridpanel显示样式
@ -1459,6 +1477,7 @@ Ext.extend(Shipping.MsOpRailwayIndex, Ext.Panel, {
//var girdcolums = this.gridList.getColumnMode(); //var girdcolums = this.gridList.getColumnMode();
var sql = this.getCondition(); var sql = this.getCondition();
this.sqlcontext = sql; this.sqlcontext = sql;
this.PageSize = this.Pagenum.getValue();
this.storeList.load({ this.storeList.load({
params: { start: 0, limit: this.PageSize, sort: '', condition: sql }, params: { start: 0, limit: this.PageSize, sort: '', condition: sql },
waitMsg: "正在查询数据...", waitMsg: "正在查询数据...",
@ -1470,6 +1489,7 @@ Ext.extend(Shipping.MsOpRailwayIndex, Ext.Panel, {
onDsQuery: function (button, event) { onDsQuery: function (button, event) {
//var girdcolums = this.gridList.getColumnMode(); //var girdcolums = this.gridList.getColumnMode();
var sql = this.sqlcontext; var sql = this.sqlcontext;
this.PageSize = this.Pagenum.getValue();
this.storeList.load({ this.storeList.load({
params: { start: 0, limit: this.PageSize, sort: '', condition: sql }, params: { start: 0, limit: this.PageSize, sort: '', condition: sql },
waitMsg: "正在查询数据...", waitMsg: "正在查询数据...",

@ -50,6 +50,24 @@ Ext.extend(Shipping.MsOpRailwayIndex, Ext.Panel, {
width: 30 width: 30
}); });
this.Pagenum = Ext.create('Ext.form.field.Number', {
name: 'bottles',
fieldLabel: '每页记录数',
labelAlign: 'right',
value: this.PageSize,
maxValue: 100000,
width: 180,
minValue: 0,
listeners: {
specialkey: function (field, e) {
if (e.getKey() == e.ENTER) {
_this.onRefreshClick();
}
}
}
});
this.initgirdcolums = [{ this.initgirdcolums = [{
sortable: true, sortable: true,
id: '', id: '',
@ -445,12 +463,12 @@ Ext.extend(Shipping.MsOpRailwayIndex, Ext.Panel, {
}, },
columns: this.girdcolums, columns: this.girdcolums,
// paging bar on the bottom // paging bar on the bottom
bbar: Ext.create('Ext.PagingToolbar', { bbar: [Ext.create('Ext.PagingToolbar', {
store: this.storeList, store: this.storeList,
displayInfo: true, displayInfo: true,
displayMsg: '当前显示 {0} - {1}条记录 /共 {2}条记录', displayMsg: '当前显示 {0} - {1}条记录 /共 {2}条记录',
emptyMsg: "没有数据" emptyMsg: "没有数据"
}) }), this.Pagenum]
}); });
/////////////以下部分为获取存储的gridpanel显示样式 /////////////以下部分为获取存储的gridpanel显示样式
@ -1226,6 +1244,7 @@ Ext.extend(Shipping.MsOpRailwayIndex, Ext.Panel, {
//var girdcolums = this.gridList.getColumnMode(); //var girdcolums = this.gridList.getColumnMode();
var sql = this.getCondition(); var sql = this.getCondition();
this.sqlcontext = sql; this.sqlcontext = sql;
this.PageSize = this.Pagenum.getValue();
this.storeList.load({ this.storeList.load({
params: { start: 0, limit: this.PageSize, sort: '', condition: sql }, params: { start: 0, limit: this.PageSize, sort: '', condition: sql },
waitMsg: "正在查询数据...", waitMsg: "正在查询数据...",

Loading…
Cancel
Save