예제 #1
0
파일: WOFind.aspx.cs 프로젝트: 2Nifty/PFC
 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");
 }
예제 #2
0
    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();
        }
    }
예제 #3
0
 /// <summary>
 /// Bind Expense Code dropdown
 /// </summary>
 private void BindExpenseCode()
 {
     utility.BindListControls(ddlCode, "ShortDsc", "TableCd", expenseEntry.GetExpenseCode(), "-- Select Code --");
 }
예제 #4
0
 /// <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");
 }