Ejemplo n.º 1
0
 /// <summary>
 /// 修改时显示部门信息
 /// </summary>
 private void ShowDepartInfo()
 {
     if (Request.QueryString["departId"] != null)
     {
         int    departId = Convert.ToInt32(Request.QueryString["departId"]);
         Depart depart   = DepartInfoService.GetDepartGetById(departId);
         this.txtDepartName.Text      = depart.DepartName;
         this.txtConnectTelNo.Text    = depart.ConnectTelNo.ToString();
         this.txtMobileTelNo.Text     = depart.ConnectMobileTelNo.ToString();
         this.txtPricipalUser.Text    = depart.PrincipalUser.UserName.ToString();
         this.ddlBranch.SelectedValue = depart.Branch.BranchId.ToString();
         this.txtFaxes.Text           = depart.Faxes.ToString();
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 根据部门ID查询所有信息
 /// </summary>
 /// <param name="departId"></param>
 /// <returns></returns>
 public static Depart GetDepartGetById(int departId)
 {
     return(DepartInfoService.GetDepartGetById(departId));
 }