Пример #1
0
        private void Bgw_DoWork(object sender, DoWorkEventArgs e)
        {
            ShowLoading("开始载入工单,请稍后...");

            moduleID = CDBConnection._GetModuleID("Program List Registration");
            strLbl2  = CDBConnection._GetLabelsTxt(CDBConnection._GetModuleID("上料防错"), 100);
            strLbl3  = CDBConnection._GetLabelsTxt(CDBConnection._GetModuleID("上料防错"), 101);

            // 枚举程序名称列表
            CDBConnection.SQL = "SELECT DISTINCT Code FROM TB_QMS_ProgramList WHERE ModuleID='" + moduleID + "' AND IsEnable=1";
            dtProgramName     = CDBConnection._GetGrdInfo(CDBConnection.SQL);
        }