/// <summary> /// 收貨上架提交 /// </summary> /// <returns></returns> public HttpResponseBase SaveReceiptShelves() { string json = String.Empty; json = "{success:false}"; IpoNvdQuery query = new IpoNvdQuery(); try { query.row_id = Convert.ToInt32(Request.Params["row_id"]); query.modify_user = (Session["caller"] as Caller).user_id; query.made_date = Convert.ToDateTime(Request.Params["made_date"]); query.cde_dt = Convert.ToDateTime(Request.Params["cde_dt"]); query.loc_id = Request.Params["loc_id"].ToString(); int pick_num = Convert.ToInt32(Request.Params["pick_num"]); if (query.row_id != 0) { _IpoNvdMgr = new IpoNvdMgr(mySqlConnectionString); bool result = _IpoNvdMgr.SaveReceiptShelves(query,pick_num); if (result) { json = "{success:true}"; } } } catch (Exception ex) { Log4NetCustom.LogMessage logMessage = new Log4NetCustom.LogMessage(); logMessage.Content = string.Format("TargetSite:{0},Source:{1},Message:{2}", ex.TargetSite.Name, ex.Source, ex.Message); logMessage.MethodName = System.Reflection.MethodBase.GetCurrentMethod().Name; log.Error(logMessage); json = "{success:false}"; } this.Response.Clear(); this.Response.Write(json); this.Response.End(); return this.Response; }