//---------- Lim Chang Siang's Code Ends Here ------------------// //Khiar Codes //Naing public WCF_Department GetDeptName(string deptid) { string deptname = RequisitionLogic.GetDepartmentName(deptid); WCF_Department wcf_dept = new WCF_Department(); wcf_dept.DeptID = deptid; wcf_dept.DepartmentName = deptname; return(wcf_dept); }
protected void OnRowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { Label l = e.Row.FindControl("LblDept") as Label; string id = l.Text; string deptname = RequisitionLogic.GetDepartmentName(id); l.Text = deptname; } }
// Determining qty ordered from the details table protected string GetQtyNeeded(string reqID) { var temp = RequisitionLogic.GetDepartmentName(reqID); return(temp.ToString()); }
// Identifying dept name protected string GetDepartmentName(string deptID) { string temp = RequisitionLogic.GetDepartmentName(deptID); return(temp.ToString()); }