Beispiel #1
0
        protected override void Page_Load(object sender, EventArgs e)
        {
            try
            {
                HttpCookie hc = getCookie("1");
                if (hc != null)
                {
                    string str = hc.Value.Replace("%3D", "=");
                    userid = Encrypt.DecryptDES(str, "1");
                    user.load(userid);
                    CheckRight(user.Entity, "pm/Op/GenOrder.aspx");

                    if (!Page.IsCallback)
                    {
                        list = createList("", "", "", "", "", "", GetDate().AddMonths(-1).ToString("yyyy-MM"), GetDate().ToString("yyyy-MM"), "");

                        Business.Base.BusinessLocation loc = new Business.Base.BusinessLocation();
                        RMLOCNo1Str += "<select id=\"RMLOCNo1\" class=\"input-text required\" style=\"width:120px;\">";
                        RMLOCNo1Str += "<option value=''>全部</option>";
                        foreach (Entity.Base.EntityLocation it in loc.GetListQuery(string.Empty, string.Empty, "null"))
                        {
                            RMLOCNo1Str += "<option value='" + it.LOCNo + "'>" + it.LOCName + "</option>";
                        }
                        RMLOCNo1Str += "</select>";

                        Business.Base.BusinessContractType bc = new Business.Base.BusinessContractType();
                        ContractType += "<select id=\"ContractType\" class=\"input-text required\" style=\"width:120px;\">";
                        ContractType += "<option value=''>全部</option>";
                        foreach (Entity.Base.EntityContractType it in bc.GetListQuery(string.Empty, string.Empty))
                        {
                            ContractType += "<option value='" + it.ContractTypeNo + "'>" + it.ContractTypeName + "</option>";
                        }
                        ContractType += "</select>";

                        SPNoStr  = "<select class=\"input-text size-MINI\" id=\"SPNo\" style=\"width:120px;\" >";
                        SPNoStr += "<option value=\"\" selected>全部</option>";
                        Business.Base.BusinessServiceProvider sp = new Business.Base.BusinessServiceProvider();
                        foreach (Entity.Base.EntityServiceProvider item in sp.GetListQuery("", "", true))
                        {
                            SPNoStr += "<option value='" + item.SPNo + "'>" + item.SPShortName + "</option>";
                        }
                        SPNoStr += "</select>";
                    }
                }
                else
                {
                    Response.Write(errorpage);
                    return;
                }
            }
            catch
            {
                Response.Write(errorpage);
                return;
            }
        }
Beispiel #2
0
        protected override void Page_Load(object sender, EventArgs e)
        {
            try
            {
                HttpCookie hc = getCookie("1");
                if (hc != null)
                {
                    string str = hc.Value.Replace("%3D", "=");
                    userid = Encrypt.DecryptDES(str, "1");
                    user.load(userid);
                    CheckRight(user.Entity, "pm/Op/GetUnLateFeeOrder.aspx");

                    if (!Page.IsCallback)
                    {
                        DateTime now = GetDate().AddMonths(-1);
                        Month   = now.ToString("yyyy-MM");
                        ARDate  = now.ToString("yyyy-MM") + "-05";
                        EndDate = ParseDateForString(now.ToString("yyyy-MM") + "-01").AddMonths(1).AddDays(-1).ToString("yyyy-MM-dd");
                        list    = createList(Month, ARDate, EndDate, "%");

                        Business.Base.BusinessContractType bc = new Business.Base.BusinessContractType();
                        ContractType += "<select id=\"ContractType\" class=\"input-text required\" style=\"width:120px;\">";
                        ContractType += "<option value=''>全部</option>";
                        foreach (Entity.Base.EntityContractType it in bc.GetListQuery(string.Empty, string.Empty))
                        {
                            ContractType += "<option value='" + it.ContractTypeNo + "'>" + it.ContractTypeName + "</option>";
                        }
                        ContractType += "</select>";
                    }
                }
                else
                {
                    Response.Write(errorpage);
                    return;
                }
            }
            catch
            {
                Response.Write(errorpage);
                return;
            }
        }