Exemple #1
0
        //'更改CD_Name的Text属性__Zhouchao
        //'20090428修改
        private void ChangeCDNameText()
        {
            CD_NAME.Text = DataDicCommon.Gf_CommNameFind(GeneralCommon.M_CN1, this.sKey, (string)(CD.Text.Trim().ToUpper()), "2");

            //if (CD.Text.Trim().Length == this.sMax)
            //{
            //    CD_NAME.Text = DataDicCommon.Gf_CommNameFind(GeneralCommon.M_CN1, this.sKey, (string) (CD.Text.Trim().ToUpper()), "2");
            //}
            //else
            //{
            //    CD_NAME.Text = "";
            //}
        }
Exemple #2
0
        public virtual void CD_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
        {
            BeforeSubEditorInvok(sender, e);
            if (Checked)
            {
                if (e.KeyCode == Keys.F4)
                {
                    GeneralCommon.DD.sWitch   = "MS";
                    GeneralCommon.DD.sKey     = this.sKey;
                    GeneralCommon.DD.nameType = "2";
                    GeneralCommon.rControl.Add(CD);
                    GeneralCommon.rControl.Add(CD_NAME);
                    GeneralCommon.DD.sJoin = sJoin.Trim();

                    GeneralCommon.DD.sCusCode    = sCusCode.Trim();
                    GeneralCommon.DD.sPrcoCode   = sPrcoCode.Trim();
                    GeneralCommon.DD.sParameters = sParameters;
                    DataDicCommon.Gf_Common_DD(GeneralCommon.OleDbConn, e.KeyCode);
                }
                else
                {
                    if (CD.Text.Trim().Length == Convert.ToInt32(this.sMax))
                    {
                        CD_NAME.Text = DataDicCommon.Gf_CommNameFind(GeneralCommon.OleDbConn, this.sKey, CD.Text.Trim().ToUpper(), "2");
                    }
                    else
                    {
                        CD_NAME.Text = "";
                    }
                }
                if (GeneralCommon.OleDbConn.State != 0)
                {
                    GeneralCommon.OleDbConn.Close();
                }
            }
        }