Пример #1
0
        //---------- 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);
        }
Пример #2
0
        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;
            }
        }
Пример #3
0
        // Determining qty ordered from the details table
        protected string GetQtyNeeded(string reqID)
        {
            var temp = RequisitionLogic.GetDepartmentName(reqID);

            return(temp.ToString());
        }
Пример #4
0
        // Identifying dept name
        protected string GetDepartmentName(string deptID)
        {
            string temp = RequisitionLogic.GetDepartmentName(deptID);

            return(temp.ToString());
        }