コード例 #1
0
        /// <summary>
        /// 删除
        /// </summary>
        public override void EntityDelete()
        {
            ShipmentRule rule   = new ShipmentRule();
            Shipment     entity = EntityGet();

            rule.RDelete(entity);
        }
コード例 #2
0
        /// <summary>
        /// 绑定Grid
        /// </summary>
        public override void BindGrid()
        {
            ShipmentRule rule = new ShipmentRule();

            gridView1.GridControl.DataSource = rule.RShowDts(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1));
            gridView1.GridControl.Show();
        }
コード例 #3
0
        /// <summary>
        /// 绑定Grid
        /// </summary>
        public override void BindGrid()
        {
            ShipmentRule rule = new ShipmentRule();

            gridView1.GridControl.DataSource = rule.RShowDts(HTLoadConditionStr + HTDataConditionStr, ProcessGrid.GetQueryField(gridView1).Replace("SelectFlag", " 0 AS SelectFlag"));
            gridView1.GridControl.Show();
        }
コード例 #4
0
        /// <summary>
        /// 修改
        /// </summary>
        public override void EntityUpdate()
        {
            ShipmentRule rule   = new ShipmentRule();
            Shipment     entity = EntityGet();

            ShipmentDts[] entitydts = EntityDtsGet();
            entity.SubmitFlag = this.HTSubmitFlagUpdateGet();
            rule.RUpdate(entity, entitydts);
        }
コード例 #5
0
        /// <summary>
        /// 新增
        /// </summary>
        public override int EntityAdd()
        {
            ShipmentRule rule   = new ShipmentRule();
            Shipment     entity = EntityGet();

            ShipmentDts[] entitydts = EntityDtsGet();

            entity.SubmitFlag = this.HTSubmitFlagInsertGet();
            rule.RAdd(entity, entitydts);
            return(entity.ID);
        }