예제 #1
0
        private void AuditGridInit()
        {
            ////ControlGen.ContrlGenerate gen = new BC.ControlGen.ContrlGenerate();
            GridHelper gen = new GridHelper();

            List<VerifyProcess_Records> list = new List<VerifyProcess_Records>();

            list= adInstance.VerfiyProcessRecords(ModuleCode, DataCode);

            //list = re.ToList();

            comGrid = gen.GenerateGrid("CList_GAuditHistory", this.gpHis, new Point(6, 20));

            //BindingSource dataSource = new BindingSource();
            //dataSource.DataSource = list;

            comGrid.DataSource = list;

            SetGridEditMode(false, comGrid);

            ////列宽度自适应
            comGrid.DisplayLayout.AutoFitStyle = AutoFitStyle.ResizeAllColumns;

            Bll_Sys_Map mapInst = new Bll_Sys_Map();
            MapSource = mapInst.GetListByCode(string.Format(" AND Map_Module='{0}'", "Failure"));
        }
예제 #2
0
        private void Init()
        {
            Bll_Sys_Map mapInst = new Bll_Sys_Map();
            Map = mapInst.GetModel(string.Format(" AND Map_Module='{0}' AND Map_Source='{0}'", "SmsTemplate"));

            Bll_Audit auditInst = new Bll_Audit();
            TemlateKey = auditInst.GetTemplateModel(ModuleCode);

            GridHelper gen = new GridHelper();
            uGridUser = gen.GenerateGrid("CList_VUser", this.panel1, new Point(6, 20));

            var dt = adInstance.GetNextVerifyUser(AuditNode, SessionConfig.UserCode);
            uGridUser.DataSource = dt;
            uGridUser.DoubleClickRow += new DoubleClickRowEventHandler(uGridUser_DoubleClickRow);
            gen.SetGridReadOnly(uGridUser, true);
            gen.SetGridColumnStyle(uGridUser, AutoFitStyle.ResizeAllColumns);

            AddCustomCol();
        }
예제 #3
0
        public void SendMsg(string codes, string module)
        {
            try
            {
                Bll_Sys_Map mapInst = new Bll_Sys_Map();
                var Map = mapInst.GetModel(string.Format(" AND Map_Module='{0}' AND Map_Source='{0}'", "SmsTemplate"));

                Bll_Audit auditInst = new Bll_Audit();
                var TemlateKey = auditInst.GetTemplateModel(module);

                string[] code = codes.TrimEnd(',').Split(',');
                foreach (var c in code)
                {
                    string content = string.Format(Map.Map_Object, TemlateKey.Template_Name, SessionConfig.UserName());

                    var model = stuffInstance.GetModelByCode(c);
                    GSMHelper.SendMessage(model.Emp_Mobile, content);
                }
            }
            catch (Exception ex)
            {
                QX.Log.PlateLog.WriteError(SessionConfig.UserName(), "", "", "", "发送短信失败!", QX.Log.PlateLog.LogMessageType.Error, ex);
            }
        }