918博天堂

Server : Microsoft-IIS/10.0
System : Windows NT EBS-6136 10.0 build 17763 (Windows Server 2016) i586
User : jxgj ( 0)
PHP Version : 7.0.33
Disable Function : passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server
Directory :  D:/tmp_aspnet/root/c7cbaa85/f3ad987/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : D:/tmp_aspnet/root/c7cbaa85/f3ad987/App_Web_sycuspi3.15.cs
?#pragma checksum "D:\wwwroot\kefucrm\wwwroot\ViewOrdersSchedule.aspx.cs" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "7EFE7E28B93161ABFE1B98DB8EDD94F453C765F6"

#line 1 "D:\wwwroot\kefucrm\wwwroot\ViewOrdersSchedule.aspx.cs"
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class ViewOrdersSchedule : System.Web.UI.Page
{
    int i = 1;
    public Customer customer = new Customer();
    public Orders orders = new Orders();
    public string strCss = "";
    private List<Staff> list_staff = new List<Staff>();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!String.IsNullOrEmpty(Request.QueryString["order_id"]))
        {
            int _id = Int32.Parse(Request.QueryString["order_id"]);
            orders = new Orders(_id);
            if (Request.Cookies["sunid"] != null)
            {
                string strUserID = Request.Cookies["sunid"].Value.ToString();

                string _userid = Microsoft.JScript.GlobalObject.unescape(strUserID);
                _userid = Microsoft.JScript.GlobalObject.unescape(_userid);

                string decry_userid = Sun_Encrypt.AESDecrypt(_userid);
                if (SunFunction.IsNumber(decry_userid))
                {
                    int i_userid = Convert.ToInt32(decry_userid);
                    try
                    {
                        Staff doStaff = new Staff(i_userid);
                        if (doStaff.companyid == orders.company_id)
                        {
                            List<OrdersSchedule> list = OrdersSchedule.GetOrderSchedule(orders.order_id);
                            list_staff = Staff.GetStaffByCid(doStaff.companyid);
                            if (list.Count > 0)
                            {
                                Repeater1.DataSource = list;
                                Repeater1.DataBind();
                            }
                            

                        }
                        else
                        {
                            Sun_KY.SqlAccess.Show_Msg("犯法操作:权限不够");
                        }
                    }
                    catch (Exception ex)
                    {
                        Sun_KY.SqlAccess.h(ex.Message);
                    }

                }
                else
                {
                    Response.Write("解密不为数字");
                }

                //  BindResume(_id, userid);
            }
            else
            {
                Sun_KY.SqlAccess.Show_Msg("获取用户信息失败,请沉新登陆");
            }
        }
    }

    public String GetOrderID()
    {
        return i++.ToString();
    }
    public string GetUserName(int userid)
    {
        string rt = string.Empty;
        for (int i = 0; i < list_staff.Count; i++)
        {
            if (list_staff[i].userid == userid)
            {
                rt = list_staff[i].username;
                break;
            }
        }
        return rt;
    }

}

#line default
#line hidden