Exemple #1
0
        private void Frm_business03_Load(object sender, EventArgs e)
        {
            business_ds = this.swapdata["dataset"] as FireBusiness_ds;
            SALESTYPE   = this.swapdata["SALESTYPE"].ToString();

            dv_xxs                  = new DataView(business_ds.AllItem);
            dv_xxs.RowFilter        = "item_type='03' and status = '1' ";
            gridControl1.DataSource = dv_xxs;
        }
Exemple #2
0
        private void Frm_business06_Load(object sender, EventArgs e)
        {
            business_ds = this.swapdata["dataset"] as FireBusiness_ds;
            AC001       = this.swapdata["AC001"].ToString();

            dv_hh           = new DataView(business_ds.AllItem);
            dv_hh.RowFilter = "item_type='06' and status = '1'";

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

            dateEdit_so005.EditValue = DateTime.Now;
        }
Exemple #3
0
        private void Frm_FireSettle_Load(object sender, EventArgs e)
        {
            AC001       = this.swapdata["AC001"].ToString();
            business_ds = this.swapdata["dataset"] as FireBusiness_ds;
            rowList     = this.swapdata["rowList"] as List <int>;


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

            gridControl1.DataSource = dt_source;
        }
Exemple #4
0
        private void Frm_business07_Load(object sender, EventArgs e)
        {
            business_ds = this.swapdata["dataset"] as FireBusiness_ds;

            if (this.swapdata.ContainsKey("AC001"))
            {
                AC001 = this.swapdata["AC001"].ToString();
            }

            SALESTYPE = this.swapdata["SALESTYPE"].ToString();

            dv_lc           = new DataView(business_ds.AllItem);
            dv_lc.RowFilter = "item_type='07' and status = '1' ";

            //为下拉列表赋数据源
            glookup_lc.Properties.DataSource    = dv_lc;
            glookup_lc.Properties.DisplayMember = "ITEM_TEXT";
            glookup_lc.Properties.ValueMember   = "ITEM_ID";
        }
Exemple #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;

            business_ds = this.swapdata["dataset"] as FireBusiness_ds;

            gridControl1.DataSource = business_ds.AllItem;
            gridControl2.DataSource = business_ds.AllItem;
            gridControl3.DataSource = business_ds.AllItem;
            gridControl4.DataSource = business_ds.AllItem;

            gridView1.ActiveFilterString = "item_type = '05' and status = '1' ";
            gridView2.ActiveFilterString = "item_type = '10' and status = '1' ";
            gridView3.ActiveFilterString = "item_type = '11' and status = '1' ";
            gridView4.ActiveFilterString = "(item_type = '12' or item_type = '13' ) and status = '1' ";
        }