Beispiel #1
0
 /// <summary>
 /// 隐藏二级收货框
 /// </summary>
 public void HideReceive2()
 {
     if (this.ucReceive2 != null && this.Controls.IndexOf(this.ucReceive2) > -1)
     {
         this.ucReceive2.Visible = false;
         this.ucReceive2         = null;
         this.Controls.Remove(this.ucReceive2);
     }
 }
Beispiel #2
0
 /// <summary>
 /// 显示二级收货框
 /// </summary>
 /// <param name="message"></param>
 /// <param name="choise"></param>
 public void ShowReceive2(ReceiveHeaderViewEntity entity)
 {
     if (this.Controls.IndexOf(this.ucReceive2) < 0)
     {
         this.ucReceive2          = new SCM.RF.Client.Tool.Controls.Receive.UCReceiveDetail_2(this);
         this.ucReceive2.Location = new System.Drawing.Point(10, 30);
         this.ucReceive2.Name     = "ucReceive2";
         this.ucReceive2.Size     = new System.Drawing.Size(300, 260);
         this.ucReceive2.TabIndex = 1;
         this.ucReceive2.TabStop  = false;
         this.Controls.Add(this.ucReceive2);
     }
     this.ucReceive2.Visible = true;
     this.ucReceive2.BringToFront();
     this.ucReceive2.Init(EnHookType.D2);
     this.ucReceive2.Init(this.RemoteServer, this.UserViewEntity);
     this.ucReceive2.Init();
     this.ucReceive2.LoadData(entity);
 }