protected void Page_Load(object sender, EventArgs e) { string _action = DNRequest.GetQueryString("action"); if ("Logout".Equals(_action)) { EMT.Tools.Common.WriteCookie("Token", "DoneNOW", -14400); //Session["dn_session_user_info"] = null; //EMT.Tools.Common.WriteCookie("UserName", "DoneNOW", -14400); //EMT.Tools.Common.WriteCookie("UserPwd", "DoneNOW", -14400); Response.Redirect("Login.aspx"); } }
public override void AjaxProcess(HttpContext context) { string action = DNRequest.GetQueryString("act"); switch (action) { case "status": var soid = context.Request.QueryString["id"]; var status = context.Request.QueryString["status_id"]; ChangeSaleOrderStatus(context, long.Parse(soid), int.Parse(status)); break; case "DeleteQuota": DeleteQuota(context); break; default: context.Response.Write("{\"code\": 1, \"msg\": \"参数错误!\"}"); return; } }
public override void AjaxProcess(HttpContext context) { string action = DNRequest.GetQueryString("act"); switch (action) { case "country": //国家 GetCountryList(context); break; case "province": //省 GetProviceList(context); break; case "district": //行政区 GetDistrictList(context); break; case "delete": string location_id = DNRequest.GetQueryString("LocationId"); context.Response.Write(DeleteLocation(context, Convert.ToInt64(location_id))); break; case "location": var locaId = context.Request.QueryString["location_id"]; GetLocation(context, long.Parse(locaId)); break; case "DeleteOrganization": DeleteOrganization(context); break; default: context.Response.Write("{\"code\": 1, \"msg\": \"参数错误!\"}"); return; } }
public override void AjaxProcess(HttpContext context) { //context.Response.ContentType = "text/plain"; //context.Response.Write("Hello World"); string act = DNRequest.GetQueryString("act"); switch (act) { case "name": // 代表用于校验用户的名称 var companyName = context.Request.QueryString["companyName"]; companyNameCheck(context, companyName); break; case "contact": // 通过客户id去获取联系人列表 var account_id = context.Request.QueryString["account_id"]; var isUserParentContact = context.Request.QueryString["userParentContact"]; //userParentContact GetCompanyContact(context, account_id, isUserParentContact); break; case "contactList": // 通过客户id去获取联系人列表 account_id = context.Request.QueryString["account_id"]; GetCompanyContactList(context, account_id); break; case "companyPhone": var id = context.Request.QueryString["account_id"]; GetCompanyPhone(context, id); break; case "opportunity": var opportunity_account_id = context.Request.QueryString["account_id"]; GetOpportunity(context, opportunity_account_id); break; case "OpportunityList": account_id = context.Request.QueryString["account_id"]; GetOpportunityList(context, account_id); break; case "property": var property_account_id = context.Request.QueryString["account_id"]; var propertyName = context.Request.QueryString["property"]; GetCompanyProperty(context, property_account_id, propertyName); break; case "propertyJson": property_account_id = context.Request.QueryString["account_id"]; propertyName = context.Request.QueryString["property"]; GetCompanyPropertyJson(context, property_account_id, propertyName); break; case "Location": var location_account_id = context.Request.QueryString["account_id"]; GetCompanyDefaultLocation(context, location_account_id); break; case "names": var ids = context.Request.QueryString["ids"]; GetCompanyNamesByIds(context, ids); break; case "vendorList": var product_id = context.Request.QueryString["product_id"]; GetVendorsByProductId(context, long.Parse(product_id)); break; case "AccReference": var ref_account_id = context.Request.QueryString["account_id"]; GetAccountReference(context, long.Parse(ref_account_id)); break; case "project": var pro_account_id = context.Request.QueryString["account_id"]; GetAccountProject(context, long.Parse(pro_account_id)); break; case "GetAccByRes": GetAccByRes(context, long.Parse(context.Request.QueryString["resource_id"]), context.Request.QueryString["showType"], !string.IsNullOrEmpty(context.Request.QueryString["isShowCom"])); break; case "GetAccAlert": GetAccAlert(context); break; case "GetAccDetail": GetAccDetail(context); break; case "GetAccountByIds": GetAccountByIds(context); break; case "GetPartnerInfo": GetPartnerInfo(context); break; default: context.Response.Write("{\"code\": 1, \"msg\": \"参数错误!\"}"); return; } }