|
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/ |
?#pragma checksum "D:\wwwroot\kefucrm\wwwroot\editCustomer.aspx.cs" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "D65909AE2931B574ABB9275F4D2A981E0DA1CD35"
#line 1 "D:\wwwroot\kefucrm\wwwroot\editCustomer.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 editCustomer : System.Web.UI.Page
{
public Customer _customer = null;
public string _from = string.Empty;
public int _service_id=0;
protected void Page_Load(object sender, EventArgs e)
{
if (!String.IsNullOrEmpty(Request.QueryString["id"]))
{
int _id = Convert.ToInt32(Request.QueryString["id"]);
_customer = new Customer(_id);
}
if (!String.IsNullOrEmpty(Request.QueryString["from"]))
{
_from = Request.QueryString["from"].Trim();
}
if (!String.IsNullOrEmpty(Request.QueryString["service_id"]))
{
_service_id =Convert.ToInt32(Request.QueryString["service_id"].Trim());
CustomerService cs = new CustomerService(Convert.ToInt32(Request.QueryString["service_id"]));
_customer = new Customer(cs.customer_id);
}
}
public string GetSex(string sex)
{
string rt = "";
if (sex == _customer.sex)
{
rt = "selected";
}
return rt;
}
public string GetRank(string rank)
{
string rt = "";
if (rank == _customer.rank)
{
rt = "selected";
}
return rt;
}
public string GetBirthday(DateTime dt)
{
string rt = string.Empty;
if (dt != new DateTime(1900, 1, 1))
{
rt = dt.ToString("yyyy-MM-dd");
}
return rt;
}
}
#line default
#line hidden