概述
//获取模型内码
string MXNM = JHQDDClient.GetInstance(_gspState).GetMXNM(BBNM);
//获取计划扩展维度,在十四所得项目中,只会出现两种汇总表样类型,所以此处做简单化处理
Dictionary dicDX = JHQDDClient.GetInstance(_gspState).GetJHKZWD(MXNM);
//if (dicDX.Count == 2 && BZBH == "")
//{
// UMessageBox.Information("币种不能为空!");
// return;
//}
Dictionary newDicDX = new Dictionary();
foreach (var keyValuePair in dicDX)
{
if (keyValuePair.Value == "5")
{
newDicDX.Add(keyValuePair.Key, string.Format("TBDATA_{0} = ", BZBH)); //币种使用编号进行查询
//dicDX[keyValuePair.Key] = string.Format("'{0}'",BZBH);
}
else if (keyValuePair.Value == "JH26")
{
newDicDX.Add(keyValuePair.Key, string.Format("TBDATA_{0} = TBJCSJ_SJNM and TBJCSJ_SJNM in (select TBJCSJ_SJNM from TBJCSJ_JHKZ where TBJCSJ_SJBH in ('0042','0048','0049'))", keyValuePair.Key));
//dicDX[keyValuePair.Key] = strSJNM;
}
else
{
newDicDX.Add(keyValuePair.Key, keyValuePair.Value);
}
}
Dictionary dicDabulateData = new Dictionary();
dicDabulateData = JHQDDClient.GetInstance(_gspState).GetTabulateData(YSZZ, FYLX, QJNM, MXNM, newDicDX);
BYZS = dicDabulateData.ContainsKey("0042") ? dicDabulateData["0042"] : "0";
JHXJ = dicDabulateData.ContainsKey("0048") ? dicDabulateData["0048"] : "0";
JHCD = dicDabulateData.ContainsKey("0049") ? dicDabulateData["0049"] : "0";
JHZS = (Convert.ToDecimal(JHXJ) + Convert.ToDecimal(JHCD)).ToString();
在下拉框的值改变后事件中,执行上述代码,给JHXJ 赋值以后,下拉框的值就不发生变化,如果不进行赋值操作,下拉框的值是会发生改变的
最后
以上就是深情芒果为你收集整理的php 下拉框触发事件,下拉框值改变后事件的全部内容,希望文章能够帮你解决php 下拉框触发事件,下拉框值改变后事件所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复