示例#1
0
 public CFactoryManager()
 {
     if (_context == null)
     {
         _context = new CUIContext();
     }
 }
示例#2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _context = SealedGlobalPage.getContext(this);
            string l_strCustomerid = Request["id"];

            display();
        }
示例#3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _context = SealedGlobalPage.getContext(this);

            if (!Page.IsPostBack)
            {
                CUser l_user = getUser();

                if (l_user != null)
                {
                    if (l_user.f_branch所別名稱.IndexOf("廠") > 0)
                    {
                        _btn小百貨.Visible = false;
                    }
                    else
                    {
                        _btn小百貨.Visible = true;
                    }
                }
                else
                {
                    Response.Redirect("../FrmLogin.aspx");
                }
                秀出該單位所有未處理工單();
            }
        }
示例#4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _context = SealedGlobalPage.getContext(this);
            string l_strBranchid = (Session[SealedGlobalPage.SESSIONKEY_LOGIN_USER_DATA] as CUser).f_branchid所別;
            string l_strType     = Request["type"];

            if (!Page.IsPostBack)
            {
                //保險介紹只有幾間特定公司 20130411 way
                if (l_strType.Equals("24"))
                {
                    CTools.get保險公司介紹(_rdo保險公司, _context);
                }
                else
                {
                    CTools.get保險公司(_rdo保險公司, _context);
                }

                _txt工單號碼.Text = CTools.get工單號碼(l_strBranchid);

                //把前端FrmWorkType.aspx?type= ??? 數字表示變成中文顯示
                顯示工單種類中文名稱(l_strType);
                初始化();
            }
        }
示例#5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _context = SealedGlobalPage.getContext(this);

            if (!Page.IsPostBack)
            {
            }
        }
示例#6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _context = SealedGlobalPage.getContext(this);
            string l_workid = Request["workid"];
            CWork  l_work   = _context.CFactoryManager.CWorkFactory.get工單資訊By單號(l_workid);

            display明細(l_work);
        }
示例#7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _context = SealedGlobalPage.getContext(this);
            string l_orderid = Request["orderid"];

            CKGPartOrderDetail[] l_detail = _context.CFactoryManager.
                                            CKGPartOrderDetailFactory.get請購明細ByExchangeID(l_orderid);
            display明細(l_detail);
        }
示例#8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _context = SealedGlobalPage.getContext(this);

            if (!Page.IsPostBack)
            {
                CTools.get所別(iv_cbo退貨所別, _context);
            }
        }
示例#9
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _context = SealedGlobalPage.getContext(this);

            string l_strworkid = Request["id"];

            CWork l_work = Session[l_strworkid] as CWork;

            display工單(l_work);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            _context = SealedGlobalPage.getContext(this);

            if (!Page.IsPostBack)
            {
                //_txtBDate.Text = DateTime.Today.ToString("yyyy/MM/dd");
                //_txtEDate.Text = DateTime.Today.ToString("yyyy/MM/dd");
            }
        }
示例#11
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _context = SealedGlobalPage.getContext(this);

            if (!this.IsPostBack)
            {
                setYear();
                setMonth();
            }
        }
示例#12
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _context = SealedGlobalPage.getContext(this);
            CUser l_user = Session[SealedGlobalPage.SESSIONKEY_LOGIN_USER_DATA] as CUser;

            if (l_user == null)
            {
                Session.Remove(SealedGlobalPage.SESSIONKEY_LOGIN_USER_DATA);
                Response.Redirect("../FrmLogin.aspx");
            }
        }
示例#13
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _context = SealedGlobalPage.getContext(this);

            CWork l_work = get登入的工單();

            if (!Page.IsPostBack)
            {
                display工單(l_work);
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            _context = SealedGlobalPage.getContext(this);

            if (!Page.IsPostBack)
            {
                CTools.get所別(iv_cbo所別, _context);
                _txtBDate.Text = DateTime.Today.AddMonths(-1).ToString("yyyy/MM/01");
                _txtEDate.Text = DateTime.Today.ToString("yyyy/MM/dd");
            }
        }
示例#15
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _context = SealedGlobalPage.getContext(this);


            CUser l_user = _context.CFactoryManager.CUserFactory.getTestEIP討論區();

            Label l_lb = new Label();

            l_lb.Text = l_user.f_userid帳號;

            PlaceHolder1.Controls.Add(l_lb);
        }
示例#16
0
文件: CTools.cs 项目: icprog/newKG
        public static void get所別(DropDownList p_ddl, CUIContext p_context)
        {
            CUser[] l_User = p_context.CFactoryManager.CUserFactory.getAll所別();

            if (p_ddl.Items.Count == 0)
            {
                p_ddl.Items.Add(new ListItem("請選擇", ""));
                for (int i = 0; i < l_User.Length; i++)
                {
                    p_ddl.Items.Add(new ListItem(l_User[i].f_branchid所別, l_User[i].f_branchid所別));
                }
            }
        }
示例#17
0
文件: CTools.cs 项目: icprog/newKG
        public static void get保險公司(RadioButtonList p_rdo, CUIContext p_context)
        {
            CInsurance[] l_Insurances = p_context.CFactoryManager.CInsuranceFactory.getAll保險公司();

            if (p_rdo.Items.Count == 0)
            {
                p_rdo.Items.Add(new ListItem("無", ""));
                for (int i = 0; i < l_Insurances.Length; i++)
                {
                    p_rdo.Items.Add(new ListItem(l_Insurances[i].f_f_name名稱, l_Insurances[i].f_id代碼));
                }
            }
        }
示例#18
0
文件: CTools.cs 项目: icprog/newKG
        public static void get洗車種類(DropDownList p_ddl, CUIContext p_context, System.Web.UI.Page p_page, string p_strType)
        {
            CWorkType[] l_worktypes = p_context.CFactoryManager.CWorkTypeFactory.getAllWorkType(p_strType);

            //if (p_ddl.Items.Count == 0)
            //{
            p_ddl.Items.Clear();
            p_ddl.Items.Add(new ListItem("請選擇", ""));
            for (int i = 0; i < l_worktypes.Length; i++)
            {
                p_ddl.Items.Add(new ListItem(l_worktypes[i].f_typeid洗車種類代碼 + "_" + l_worktypes[i].f_typename洗車種類名稱, l_worktypes[i].f_typeid洗車種類代碼));
            }
            //}
        }
示例#19
0
文件: CTools.cs 项目: icprog/newKG
        /// <summary>
        ///  (Yu 20090515) 加入高輊小百貨產品檔所有的產品類別
        /// </summary>
        /// <param name="p_cbo"></param>
        /// <returns></returns>
        public static void 加入高輊小百貨產品類別(DropDownList p_cbo, CUIContext p_context)
        {
            CKGPart[] l_codes = p_context.CFactoryManager.CKGPartFactory.getCKGPart所有類別();

            p_cbo.Items.Clear();
            p_cbo.Items.Insert(0, "");
            if (l_codes != null)
            {
                for (int i = 0; i < l_codes.Length; i++)
                {
                    p_cbo.Items.Add(new ListItem(l_codes[i].f_TypeID類別編號 + "  " + l_codes[i].f_TypeName類別名稱, l_codes[i].f_TypeID類別編號));
                }
            }
        }
示例#20
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _context = SealedGlobalPage.getContext(this);
            string l_strWorkid = Request["workid"];

            CConstruction[] l_Construction = _context.CFactoryManager.CConstructionFactory.get施工人員明細By單號(l_strWorkid);
            display(l_Construction);
            CUser l_user = Session[SealedGlobalPage.SESSIONKEY_LOGIN_USER_DATA] as CUser;

            if (l_user == null)
            {
                Session.Remove(SealedGlobalPage.SESSIONKEY_LOGIN_USER_DATA);
                Response.Redirect("../FrmLogin.aspx");
            }
        }
示例#21
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _context = SealedGlobalPage.getContext(this);
            string l_smid     = Request["smid"];
            string l_type     = Request["type"];
            string l_strBDate = Request["BDate"];
            string l_strEDate = Request["EDate"];

            if (!this.IsPostBack)
            {
                C欠款紀錄[] l_C欠款紀錄 = _context.CFactoryManager.C欠款紀錄Factory.
                                  get欠款紀錄明細(l_smid, l_type, l_strBDate, l_strEDate);
                display(l_C欠款紀錄);
            }
        }
示例#22
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _context = SealedGlobalPage.getContext(this);

            if (!Page.IsPostBack)
            {
                CTools.加入高輊小百貨產品類別(iv_cbo類別名稱, _context);
            }
            CUser l_user = Session[SealedGlobalPage.SESSIONKEY_LOGIN_USER_DATA] as CUser;

            if (l_user == null)
            {
                Session.Remove(SealedGlobalPage.SESSIONKEY_LOGIN_USER_DATA);
                Response.Redirect("../../FrmLogin.aspx");
            }
        }
示例#23
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _context = SealedGlobalPage.getContext(this);

            if (!this.IsPostBack)
            {
                CTools.get所別(_ddl所別, _context);
                CTools.get使用者等級(_ddl等級);

                string l_id = Request["smid"];

                CUser l_user = _context.CFactoryManager.CUserFactory.get取得使用者by帳號(l_id);

                display(l_user);
            }
        }
示例#24
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _context = SealedGlobalPage.getContext(this);

            if (!this.IsPostBack)
            {
                CTools.get所別(_ddl所別, _context);
                CTools.get使用者等級(_ddl等級);
            }
            CUser l_user = Session[SealedGlobalPage.SESSIONKEY_LOGIN_USER_DATA] as CUser;

            if (l_user == null)
            {
                Session.Remove(SealedGlobalPage.SESSIONKEY_LOGIN_USER_DATA);
                Response.Redirect("../FrmLogin.aspx");
            }
        }
示例#25
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _context = SealedGlobalPage.getContext(this);

            if (!this.IsPostBack)
            {
                CTools.get所別(_ddl所別, _context);
                _txtBDate.Text = DateTime.Today.ToString("yyyy/MM/dd");
                _txtEDate.Text = _txtBDate.Text;
            }
            CUser l_user = Session[SealedGlobalPage.SESSIONKEY_LOGIN_USER_DATA] as CUser;

            if (l_user == null)
            {
                Session.Remove(SealedGlobalPage.SESSIONKEY_LOGIN_USER_DATA);
                Response.Redirect("../FrmLogin.aspx");
            }
        }
示例#26
0
        protected void Page_Load(object sender, EventArgs e)
        {
            iv_context = SealedGlobalPage.getContext(this);
            string l_strExcel路徑 = @"C:\Inetpub\wwwroot\KGUi\report\upload\KGPoint";

            Session.Add(SealedGlobalPage.SESSIONKEY_KGPOINT_EXCEL_LOCATION, l_strExcel路徑);

            if (!Page.IsPostBack)
            {
                取得資料夾內的檔名(iv_cbo檔案名稱, l_strExcel路徑);
            }
            CUser l_user = Session[SealedGlobalPage.SESSIONKEY_LOGIN_USER_DATA] as CUser;

            if (l_user == null)
            {
                Session.Remove(SealedGlobalPage.SESSIONKEY_LOGIN_USER_DATA);
                Response.Redirect("../../FrmLogin.aspx");
            }
        }
示例#27
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _context = SealedGlobalPage.getContext(this);

            string l_strEID  = Request["EID"];
            string l_strType = Request["Type"];

            if (!Page.IsPostBack)
            {
                if ("Buy".Equals(l_strType))
                {
                    Label1.Text = get列印領料單Html(l_strEID);
                }
                else
                {
                    Label1.Text = get退貨單Html(l_strEID);
                }
            }
        }
示例#28
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _context = SealedGlobalPage.getContext(this);
            string l_strBDate    = Request["BDate"];
            string l_strEDate    = Request["EDate"];
            string l_strBranchid = Request["Branchid"];

            C各廠介紹獎金[] l_各廠介紹獎金 = _context.CFactoryManager.C各廠介紹獎金Factory.
                                 get各廠介紹獎金By明細(l_strBDate, l_strEDate, l_strBranchid);

            display(l_各廠介紹獎金);
            CUser l_user = Session[SealedGlobalPage.SESSIONKEY_LOGIN_USER_DATA] as CUser;

            if (l_user == null)
            {
                Session.Remove(SealedGlobalPage.SESSIONKEY_LOGIN_USER_DATA);
                Response.Redirect("../FrmLogin.aspx");
            }
        }
示例#29
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _context = SealedGlobalPage.getContext(this);

            string l_strSmid  = Request["smid"];
            string l_strBDate = Request["BDate"];
            string l_strEDate = Request["EDate"];

            CWork[] l_Work = _context.CFactoryManager.CWorkFactory.
                             get工單資訊By薪資(l_strSmid, l_strBDate, l_strEDate);

            display(l_Work);
            CUser l_user = Session[SealedGlobalPage.SESSIONKEY_LOGIN_USER_DATA] as CUser;

            if (l_user == null)
            {
                Session.Remove(SealedGlobalPage.SESSIONKEY_LOGIN_USER_DATA);
                Response.Redirect("../FrmLogin.aspx");
            }
        }
示例#30
0
        protected void Page_Load(object sender, EventArgs e)
        {
            iv_context = SealedGlobalPage.getContext(this);

            if (!Page.IsPostBack)
            {
                string l_strid = Request["id"];
                if (l_strid == null || "".Equals(l_strid))
                {
                    string l_str = "alert('請先查詢後再進行修改作業');";
                    ScriptManager.RegisterClientScriptBlock(UpdatePanel1, typeof(UpdatePanel), "OK", l_str, true);
                    return;
                }
                顯示資訊(l_strid);
            }
            CUser l_user = Session[SealedGlobalPage.SESSIONKEY_LOGIN_USER_DATA] as CUser;

            if (l_user == null)
            {
                Session.Remove(SealedGlobalPage.SESSIONKEY_LOGIN_USER_DATA);
                Response.Redirect("../../FrmLogin.aspx");
            }
        }