コード例 #1
0
        protected void GetData(string strEmpID)
        {
            DataTable dtEmp = objLeaveMgr.SelectEmpInfoForLeave(strEmpID);

            if (dtEmp.Rows.Count > 0)
            {
                lblEmpID.Text    = strEmpID.Trim();
                lblEmpName.Text  = dtEmp.Rows[0]["FullName"].ToString();
                lblPosition.Text = dtEmp.Rows[0]["DesigName"].ToString();
                lblOffice.Text   = dtEmp.Rows[0]["DivisionName"].ToString();
                lblJoinDate.Text = Common.DisplayDateTime(dtEmp.Rows[0]["JoiningDate"].ToString(), false, Constant.strDateFormat);
                // strEmpSex = dtEmp.Rows[0]["Gender"].ToString();
                this.GetLeaveBalance(strEmpID, dtEmp.Rows[0]["Gender"].ToString().Trim());
            }
        }