public void ModifyDepartment(string depID) { int DepID = StrToInt(depID); BG_Department dp = BG_DepartmentManager.GetBG_DepartmentByDepID(DepID); hiddepid.Text = DepID.ToString(); txtEDName.Text = dp.DepName.ToString(); if (dp.DepRem == null) { txtEDDes.Text = null; } txtEDDes.Text = dp.DepRem.ToString(); WinEdit.Show(); }
public void ModifyPolicy(string plid) { int PLID = Convert.ToInt32(plid); BG_Policy bg_policy = BG_PolicyManager.GetBG_PolicyByPLID(PLID); TFPTitle.Text = bg_policy.PTitle.ToString(); TFID.Text = plid; TFPOrder.Text = bg_policy.POrder.ToString(); TFPTime.Text = Convert.ToDateTime(bg_policy.PTime).ToString("yyyy-MM-dd HH:mm:ss"); TFPFrom.Text = bg_policy.PFrom; ADPcmb.Text = bg_policy.PType; TFcmb.SelectedItem.Value = bg_policy.PTitle.ToString(); HEdit.Text = bg_policy.PContent; WinEdit.Show(); }