Exemple #1
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();
        }
    }
Exemple #2
0
 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");
 }
Exemple #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        cnPFCReports = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["PFCReportsConnectionString"].ConnectionString);
        Ajax.Utility.RegisterTypeForAjax(typeof(ExcessInventoryRpt));

        if (!Page.IsPostBack)
        {
            Session["UserName"] = ((Session["UserName"] != null) ? Session["UserName"].ToString() : "[null]");
            DataUtil.BindLocList("ALL", ddlLocation, "MaintainIMQtyInd='Y' ORDER BY LocID");
            ClearGrid();
        }
    }