//构造函数
 public UCSupplierAddOrEdit(WindowStatus status, string suppId, UCSupplierManager uc)
 {
     InitializeComponent();
     //gvUserInfoList.ReadOnly = false;
     this.windowStatus = status;
     this.suppId = suppId;
     this.uc = uc;
     BindDllInfo();
     if (status == WindowStatus.Edit || status == WindowStatus.Copy)
     {
         LoadInfo(suppId);
         GetAllContacts(suppId);
         ucAttr.TableName = "tb_supplier";
         ucAttr.TableNameKeyValue = suppId;
         ucAttr.BindAttachment();
     }
     if (status == WindowStatus.Add || status == WindowStatus.Copy)
     {
         lblsup_code.Text = CommonUtility.GetNewNo(DataSources.EnumProjectType.Supplier);
     }
     base.SaveEvent += new ClickHandler(UCSupplierAddOrEdit_SaveEvent);
     base.CancelEvent += new ClickHandler(UCSupplierAddOrEdit_CancelEvent);
     base.StatusEvent += new ClickHandler(UCSupplierAddOrEdit_StatusEvent);
     base.DeleteEvent += new ClickHandler(UCSupplierAddOrEdit_DeleteEvent);
 }
Example #2
0
 //构造函数
 public UCSupplierAddOrEdit(WindowStatus status, string suppId, UCSupplierManager uc)
 {
     InitializeComponent();
     //gvUserInfoList.ReadOnly = false;
     this.windowStatus = status;
     this.suppId       = suppId;
     this.uc           = uc;
     BindDllInfo();
     if (status == WindowStatus.Edit || status == WindowStatus.Copy)
     {
         LoadInfo(suppId);
         GetAllContacts(suppId);
         ucAttr.TableName         = "tb_supplier";
         ucAttr.TableNameKeyValue = suppId;
         ucAttr.BindAttachment();
     }
     if (status == WindowStatus.Add || status == WindowStatus.Copy)
     {
         lblsup_code.Text = CommonUtility.GetNewNo(DataSources.EnumProjectType.Supplier);
     }
     base.SaveEvent   += new ClickHandler(UCSupplierAddOrEdit_SaveEvent);
     base.CancelEvent += new ClickHandler(UCSupplierAddOrEdit_CancelEvent);
     base.StatusEvent += new ClickHandler(UCSupplierAddOrEdit_StatusEvent);
     base.DeleteEvent += new ClickHandler(UCSupplierAddOrEdit_DeleteEvent);
 }
Example #3
0
 public UCSupplierView(string supperId, UCSupplierManager ParentFrm)
 {
     InitializeComponent();
     LoadInfo(supperId);
     GetAllContacts(supperId);
     ucAttr.TableName = "tb_supplier";
     ucAttr.TableNameKeyValue = supperId;
     ucAttr.BindAttachment();
     ucAttr.ReadOnly = true;
     uc = ParentFrm;
 }
Example #4
0
 public UCSupplierView(string supperId, UCSupplierManager ParentFrm)
 {
     InitializeComponent();
     LoadInfo(supperId);
     GetAllContacts(supperId);
     ucAttr.TableName         = "tb_supplier";
     ucAttr.TableNameKeyValue = supperId;
     ucAttr.BindAttachment();
     ucAttr.ReadOnly = true;
     uc = ParentFrm;
 }
Example #5
0
 private void picGyszl_Click(object sender, EventArgs e)
 {
     UCSupplierManager uc = new UCSupplierManager();
     string tag = "CL_DataManagement|CL_DataManagement_BasicData|CL_DataManagement_BasicData_SupplierFile";
     UCBase.AddUserControl(uc, "供应商资料", "CL_DataManagement_BasicData_SupplierFile", tag, "");
 }