Exemple #1
0
 public UCCompanyView(string _id, UCCompanyManager _uc, WindowStatus _wStatus)
 {
     id           = _id;
     uc           = _uc;
     windowStatus = _wStatus;
     InitializeComponent();
     base.CancelEvent += new ClickHandler(UCCompanyView_CancelEvent);
     UCCompanyView_Load(null, null);
 }
 public UCCompanyView(string _id, UCCompanyManager _uc, WindowStatus _wStatus)
 {
     id = _id;
     uc = _uc;
     windowStatus = _wStatus;
     InitializeComponent();
     base.CancelEvent += new ClickHandler(UCCompanyView_CancelEvent);
     UCCompanyView_Load(null, null);
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="winStatus">窗体状态</param>
 /// <param name="dr">数据行</param>
 /// <param name="parentName">父窗体名称</param>
 public UCCompanyAddOrEdit(WindowStatus winStatus, DataRow dr, string parentName, UCCompanyManager parentFrm)
 {
     InitializeComponent();
     this.windowStatus = winStatus;
     this.dr = dr;
     this.parentName = parentName;
     base.SaveEvent += new ClickHandler(UCCompanyAddOrEdit_SaveEvent);
     base.CancelEvent += new ClickHandler(UCCompanyAddOrEdit_CancelEvent);
     base.StatusEvent += new ClickHandler(UCCompanyAddOrEdit_StatusEvent);
     base.DeleteEvent += new ClickHandler(UCCompanyAddOrEdit_DeleteEvent);
     this.txtremark.InnerTextBox.Multiline = true;
     this.txtremark.Height *= 2;
     txtcom_name.InnerTextBox.TextChanged += new EventHandler(InnerTextBox_TextChanged);
     UCCompanyAddOrEdit_Load(null, null);
 }
Exemple #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="winStatus">窗体状态</param>
 /// <param name="dr">数据行</param>
 /// <param name="parentName">父窗体名称</param>
 public UCCompanyAddOrEdit(WindowStatus winStatus, DataRow dr, string parentName, UCCompanyManager parentFrm)
 {
     InitializeComponent();
     this.windowStatus = winStatus;
     this.dr           = dr;
     this.parentName   = parentName;
     base.SaveEvent   += new ClickHandler(UCCompanyAddOrEdit_SaveEvent);
     base.CancelEvent += new ClickHandler(UCCompanyAddOrEdit_CancelEvent);
     base.StatusEvent += new ClickHandler(UCCompanyAddOrEdit_StatusEvent);
     base.DeleteEvent += new ClickHandler(UCCompanyAddOrEdit_DeleteEvent);
     this.txtremark.InnerTextBox.Multiline = true;
     this.txtremark.Height *= 2;
     txtcom_name.InnerTextBox.TextChanged += new EventHandler(InnerTextBox_TextChanged);
     UCCompanyAddOrEdit_Load(null, null);
 }