private void tsbUpload_Click(object sender, EventArgs e) { if (!MyLove.PermissionsBalidation(this.Text, "14")) { return; } DataRow dr = this.dgvSup.CurrentRow(); if (dr == null) { return; } var sup = DB.ReflectionHelper.DataRowToModel <bi_t_supcust_info>(dr); var frm = new frmSupcustUpdate(); frm.runType = runType; frm.supcust = sup; frm.ShowDialog(); LoadSup(); }
private void tsbAdd_Click(object sender, EventArgs e) { if (!MyLove.PermissionsBalidation(this.Text, "01")) { return; } var frm = new frmSupcustUpdate(); frm.runType = runType; if (tv.SelectedNode != null) { if (tv.SelectedNode.Tag != null) { var region = (Model.bi_t_region_info)tv.SelectedNode.Tag; frm.region_no = region.region_no; } } frm.ShowDialog(); LoadSup(); }