public void BindFindControls() { DataUtil.BindListControls(ddlUserId, "Name", "Code", DataUtil.GetUsers(), "All"); DataUtil.SetListControlValue(ddlUserId, Session["UserName"].ToString()); DataUtil.BindListControls(ddlWOType, "ListDesc", "ListValue", DataUtil.GetListDetails("WOOrderType"), "All"); DataUtil.BindLocList("All", ddlMfgLoc, "AssemblyLoc='Y' ORDER BY LocID"); DataUtil.BindListControls(ddlStatusDesc, "ListDesc", "ListValue", DataUtil.GetListDetails("WOFindOrderStat"), "All"); DataUtil.BindListControls(ddlPrinted, "ListDesc", "ListValue", DataUtil.GetListDetails("WOPrinted"), "All"); DataUtil.BindListControls(ddlRouting, "Name", "Code", DataUtil.GetRoutes(), "All"); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { Ajax.Utility.RegisterTypeForAjax(typeof(WOWorkSheet)); Session["UserName"] = ((Session["UserName"] != null) ? Session["UserName"].ToString() : "[null]"); GetSecurity(); DataUtil.BindListControls(ddlActionStatus, "ListDesc", "ListValue", DataUtil.GetListDetails("WOActions"), "--- ALL ---"); //DataUtil.BindListControls(ddlPriorityCd, "ListDesc", "ListValue", DataUtil.GetListDetails("WOPriorityCd"), "--- ALL ---"); DataUtil.BindListFromTables("--- ALL ---", ddlPriorityCd, "TableType='PRI' AND WOApp='Y' ORDER BY TableCd"); DataUtil.BindLocList("--- ALL ---", ddlBranch, "AssemblyLoc='Y' ORDER BY LocID"); ClearGrid(); } }
/// <summary> /// Bind Expense Code dropdown /// </summary> private void BindExpenseCode() { utility.BindListControls(ddlCode, "ShortDsc", "TableCd", expenseEntry.GetExpenseCode(), "-- Select Code --"); }
/// <summary> /// Bind the Dropdown list /// </summary> private void BindCommentType() { utility.BindListControls(ddlType, "ListDesc", "ListValue", comments.GetCommentType(), ""); utility.BindListControls(ddlFrom, "ListDesc", "ListValue", comments.GetForm(), "-- Select Form Type --"); utility.BindListControls(ddlStdComment, "Comments", "TypeForm", comments.GetStdComment(), "---- Standard ----"); utility.BindListControls(ddlFilter, "ListDesc", "ListValue", comments.GetCommentType(), "Active"); }