Example #1
0
        private void Frm_business03_Load(object sender, EventArgs e)
        {
            bo      = this.swapdata["businessObject"] as BaseBusiness;
            sa01_ds = this.swapdata["dataset"] as Sa01_ds;
            //AC001 = this.swapdata["AC001"].ToString();


            dv_xxs                  = new DataView(sa01_ds.Si01);
            dv_xxs.RowFilter        = "item_type='03' ";
            gridControl1.DataSource = dv_xxs;
        }
Example #2
0
        private void Frm_business07_Load(object sender, EventArgs e)
        {
            sa01_ds = this.swapdata["dataset"] as Sa01_ds;
            AC001   = this.swapdata["AC001"].ToString();

            dv_lc           = new DataView(sa01_ds.Si01);
            dv_lc.RowFilter = "item_type='07' ";

            //为下拉列表赋数据源
            glookup_lc.Properties.DataSource    = dv_lc;
            glookup_lc.Properties.DisplayMember = "ITEM_TEXT";
            glookup_lc.Properties.ValueMember   = "ITEM_ID";
        }
Example #3
0
        private void Frm_fireSettle_Load(object sender, EventArgs e)
        {
            AC001   = this.swapdata["AC001"].ToString();
            sa01_ds = this.swapdata["dataset"] as Sa01_ds;
            rowList = this.swapdata["rowList"] as List <int>;

            ///拷贝要结算的记录!!!
            dt_source = sa01_ds.Sa01.Clone();
            foreach (int i in rowList)
            {
                dt_source.Rows.Add(sa01_ds.Sa01.Rows[i].ItemArray);
            }

            gridControl1.DataSource = dt_source;
        }
Example #4
0
        private void Frm_business06_Load(object sender, EventArgs e)
        {
            sa01_ds = this.swapdata["dataset"] as Sa01_ds;
            AC001   = this.swapdata["AC001"].ToString();

            dv_hh           = new DataView(sa01_ds.Si01);
            dv_hh.RowFilter = "item_type='06'";

            //为下拉列表赋数据源
            glookup_hh.Properties.DataSource    = dv_hh;
            glookup_hh.Properties.DisplayMember = "ITEM_TEXT";
            glookup_hh.Properties.ValueMember   = "ITEM_ID";

            dateEdit_so005.EditValue = DateTime.Now;
        }
Example #5
0
        private void Frm_businessMisc_Load(object sender, EventArgs e)
        {
            if (this.swapdata["businessObject"] is FireBusiness)
            {
                bo = this.swapdata["businessObject"] as FireBusiness;
            }
            else if (this.swapdata["businessObject"] is TempSales)
            {
                bo = this.swapdata["businessObject"] as TempSales;
            }

            sa01_ds = this.swapdata["dataset"] as Sa01_ds;

            gridControl1.DataSource = sa01_ds.Si01;
            gridControl2.DataSource = sa01_ds.Si01;
            gridControl3.DataSource = sa01_ds.Si01;
            gridControl4.DataSource = sa01_ds.Si01;

            gridView1.ActiveFilterString = "item_type = '05' ";
            gridView2.ActiveFilterString = "item_type = '10' ";
            gridView3.ActiveFilterString = "item_type = '11' ";
            gridView4.ActiveFilterString = "item_type = '12' ";
        }