public void update(HttpContext context) { string num = context.Request["num"].Trim(); string iszs = context.Request["iszs"].Trim(); string showtypejg = context.Request["showtypejg"].Trim(); string is_vip = context.Request["is_vip"].Trim(); string is_ShowType = context.Request["is_ShowType"].Trim(); string is_CheckOutRemind = context.Request["is_CheckOutRemind"].Trim(); string is_CheckOutTime = context.Request["is_CheckOutTime"].Trim(); string isRuleName = context.Request["isRuleName"].Trim(); string BusinessHour = context.Request["BusinessHour"].Trim(); string BusinessMinute = context.Request["BusinessMinute"].Trim(); string CashPledgeMoney = context.Request["CashPledgeMoney"].Trim(); string adminHotelId = RequestSession.GetSessionUser().AdminHotelid.ToString(); Hashtable hs = new Hashtable(); hs["num"] = num; //hs["iszs"] = iszs; //hs["showtypejg"] = showtypejg; bool i = DataFactory.SqlDataBase().Submit_AddOrEdit("moday", "AdminHotelid", adminHotelId, hs); Hashtable hss = new Hashtable(); hss["is_open"] = iszs; hss["is_price"] = showtypejg; hss["is_VipPrice"] = is_vip; hss["is_ShowType"] = is_ShowType; i = DataFactory.SqlDataBase().Submit_AddOrEdit("hotel", "AdminHotelid", adminHotelId, hss); Hashtable ht = new Hashtable(); ht["CheckOutRemind"] = is_CheckOutRemind; ht["CheckOutTime"] = is_CheckOutTime; ht["isRuleName"] = isRuleName; i = DataFactory.SqlDataBase().Submit_AddOrEdit("Wx_function", "AdminHotelid", adminHotelId, ht); Hashtable htParameter = new Hashtable(); htParameter["BusinessHour"] = BusinessHour; htParameter["BusinessMinute"] = BusinessMinute; htParameter["CashPledgeMoney"] = CashPledgeMoney; i = DataFactory.SqlDataBase().Submit_AddOrEdit("Hotel_AdminParameter", "AdminHotelId", adminHotelId, htParameter); ApplicationHelper.ClearFunction(adminHotelId);//清理 指定酒店功能参数 if (i) { context.Response.Write("ok"); } else { context.Response.Write("error"); } }