/// <summary>
        /// 绑定数据明细
        /// </summary>
        public override void BindGridDts()
        {
            FlowerTypeContolDtsRule rule = new FlowerTypeContolDtsRule();
            DataTable dtDts = rule.RShow(" AND MainID=" + HTDataID + " ORDER BY Seq", ProcessGrid.GetQueryField(gridView1));

            gridView1.GridControl.DataSource = dtDts;
            gridView1.GridControl.Show();
        }
        private void btnDelete_Click_1(object sender, EventArgs e)
        {
            FlowerTypeContolDts entity = new FlowerTypeContolDts();

            entity.MainID = HTDataID;
            entity.Seq    = saveSeq;
            FlowerTypeContolDtsRule rule = new FlowerTypeContolDtsRule();

            rule.RDelete(entity);
            BindGridDts();
        }
        private void btnUpdate_Click_1(object sender, EventArgs e)
        {
            FlowerTypeContolDts entity = new FlowerTypeContolDts();

            entity.MainID    = HTDataID;
            entity.Seq       = saveSeq;
            entity.ColorCode = txtDHX.Text.Trim();
            entity.Freestr1  = txtDMS.Text.Trim();
            entity.Freestr2  = txtDJBBM.Text.Trim();
            entity.Freestr3  = txtDYS.Text.Trim();
            entity.Freestr4  = txtDML.Text.Trim();
            entity.Freestr5  = txtDSize.Text.Trim();
            entity.Freestr6  = txtJZ.Text.Trim();
            FlowerTypeContolDtsRule rule = new FlowerTypeContolDtsRule();

            rule.RUpdate(entity);
            BindGridDts();
        }
        private void btnSaveD_Click_1(object sender, EventArgs e)
        {
            FlowerTypeContolDts entity = new FlowerTypeContolDts();

            entity.MainID = HTDataID;
            string    sql = " SELECT MAX(Seq) from Data_FlowerTypeContolDts where MainID=" + entity.MainID;
            DataTable dt  = SysUtils.Fill(sql);

            entity.Seq       = SysConvert.ToInt32(dt.Rows[0][0]) + 1;
            entity.ColorCode = txtDHX.Text.Trim();
            entity.Freestr1  = txtDMS.Text.Trim();
            entity.Freestr2  = txtDJBBM.Text.Trim();
            entity.Freestr3  = txtDYS.Text.Trim();
            entity.Freestr4  = txtDML.Text.Trim();
            entity.Freestr5  = txtDSize.Text.Trim();
            entity.Freestr6  = txtJZ.Text.Trim();

            FlowerTypeContolDtsRule rule = new FlowerTypeContolDtsRule();

            rule.RAdd(entity);
            BindGridDts();
        }