Ejemplo n.º 1
0
 private void InitializeData()
 {
     this.dataGridView1.AutoGenerateColumns = true;
     DTds = SceneryAccess.selectForDistributor(DTId);
     if (DTds != null)
     {
         dataGridView1.DataSource = DTds.Tables[0];
     }
     this.dataGridView2.AutoGenerateColumns = true;
     OAds = OrderAccess.ShowOrderForDistributor(DTId);
     if (OAds != null)
     {
         this.dataGridView2.DataSource = OAds.Tables[0];
     }
     this.dataGridView3.AutoGenerateColumns = true;
     SYds = SceneryAccess.ShowScenery();
     if (SYds != null)
     {
         this.dataGridView3.DataSource = SYds.Tables[0];
     }
     this.dataGridView4.AutoGenerateColumns = true;
     ASds1 = ApplySceneryAccess.selectForApply(DTId);
     if (ASds1 != null)
     {
         this.dataGridView4.DataSource = ASds1.Tables[0];
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 界面显示初始化
 /// </summary>
 private void InitializeDataSet()
 {
     this.dataGridView1.AutoGenerateColumns = true;
     this.dataGridView2.AutoGenerateColumns = true;
     this.dataGridView3.AutoGenerateColumns = true;
     this.dataGridView4.AutoGenerateColumns = true;
     this.dataGridView5.AutoGenerateColumns = true;
     this.dataGridView6.AutoGenerateColumns = true;
     this.dataGridView7.AutoGenerateColumns = true;
     SPds = SupplierAccess.Select();
     DTds = DistributorAccess.Select();
     ACds = AdminAccess.ShowSupperUser();
     RLds = RoleAccess.ShowRole();
     ASds = ApplySceneryAccess.selectForApply();
     RPds = RoleProductAccess.ShowRoleProduct();
     SYds = SceneryAccess.ShowSceneryForSupper();
     if (SPds != null)
     {
         dataGridView1.DataSource = SPds.Tables[0];
     }
     if (DTds != null)
     {
         dataGridView2.DataSource = DTds.Tables[0];
     }
     if (RLds != null)
     {
         dataGridView3.DataSource = RLds.Tables[0];
     }
     if (ACds != null)
     {
         dataGridView4.DataSource = ACds.Tables[0];
     }
     if (RPds != null)
     {
         dataGridView5.DataSource = RPds.Tables[0];
     }
     if (ASds != null)
     {
         dataGridView6.DataSource = ASds.Tables[0];
     }
     if (SYds != null)
     {
         dataGridView7.DataSource = SYds.Tables[0];
     }
 }