private void txtcInvCode_MouseDoubleClick(object sender, MouseEventArgs e) { txtcInvCode.Text = iLoginEx.OpenSelectWindow("物料", "select cInvCode as '料号',cInvName as '品名',cInvStd as '规格' from inventory (nolock)", txtcInvCode.Text, 430, 300, 1); string[] para = txtcInvCode.Text.Split(new string[] { "\r\n\r\n\r\n " }, StringSplitOptions.None); if (para.Length > 1) { txtcInvCode.Text = para[0]; //wName = para[0]; } }
private void txtWhCode_MouseDoubleClick(object sender, MouseEventArgs e) { txtWhCode.Text = iLoginEx.OpenSelectWindow("仓库", "select cWhCode as '仓库代码',cWhName as '仓库名称' from Warehouse (nolock) where cWhCode in (select cWhCode from " + iLoginEx.pubDB_UT() + "..StockClose (nolock) where cDisable=0 and cAccID='" + iLoginEx.AccID() + "')", txtWhCode.Text, 430, 300, 1, true); //string[] para = txtWhCode.Text.Split(new string[] { "\r\n\r\n\r\n " }, StringSplitOptions.None); //if (para.Length > 1) //{ // txtWhCode.Text = para[0]; //} }
private void txtcWhCode_MouseDoubleClick(object sender, MouseEventArgs e) { txtcWhCode.Text = iLoginEx.OpenSelectWindow("仓库", "select cWhCode as '仓库代码',cWhName as '仓库名称' from Warehouse (nolock) where cWhCode in (select cWhCode from " + iLoginEx.pubDB_UT() + "..StockClose (nolock) where cDisable=0 and cAccID='" + iLoginEx.AccID() + "')", txtcWhCode.Text, 430, 300, 1, true); }