Esempio n. 1
0
        /// <summary>
        /// 修改
        /// </summary>
        public override void EntityUpdate()
        {
            StorgeAlarmRule rule   = new StorgeAlarmRule();
            StorgeAlarm     entity = EntityGet();

            rule.RUpdate(entity);
        }
Esempio n. 2
0
        /// <summary>
        /// 绑定Grid
        /// </summary>
        public override void BindGrid()
        {
            StorgeAlarmRule rule = new StorgeAlarmRule();

            gridView1.GridControl.DataSource = rule.RShow(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1));
            gridView1.GridControl.Show();
        }
Esempio n. 3
0
        /// <summary>
        /// 绑定Grid
        /// </summary>
        public override void BindGrid()
        {
            StorgeAlarmRule rule = new StorgeAlarmRule();
            DataTable       dt   = rule.RShowStorge(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1).Replace("YCFlag", "0 AS YCFlag"));

            gridView1.GridControl.DataSource = dt;
            gridView1.GridControl.Show();
        }
Esempio n. 4
0
        /// <summary>
        /// 新增
        /// </summary>
        public override int EntityAdd()
        {
            StorgeAlarmRule rule   = new StorgeAlarmRule();
            StorgeAlarm     entity = EntityGet();

            rule.RAdd(entity);
            return(entity.ID);
        }
Esempio n. 5
0
        void work_DoWork(object sender, DoWorkEventArgs e)
        {
            StorgeAlarmRule rule = new StorgeAlarmRule();

            GridView1Table = rule.RShowStorge(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1).Replace("YCFlag", "0 AS YCFlag"));
            //IOFormRule rule = new IOFormRule();
            //GridView1Table = rule.RShowDts(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1));
        }