public HttpResponseBase Updateiinvdstqty() { int result = 0; string json = string.Empty; Iinvd invd = new Iinvd(); if (!string.IsNullOrEmpty(Request.Params["row_id"].Trim())) { invd.row_id = Convert.ToInt32(Request.Params["row_id"].Trim());//獲取工作編號 } if (!string.IsNullOrEmpty(Request.Params["stqty"].Trim())) { invd.st_qty = Convert.ToInt32(Request.Params["stqty"].Trim());//獲取工作編號 } invd.create_dtim = DateTime.Now; //創建時間 invd.create_user = (System.Web.HttpContext.Current.Session["caller"] as Caller).user_id; try { _iinvd = new IinvdMgr(mySqlConnectionString); result = _iinvd.Updateiinvdstqty(invd); if (result > 0) { json = "{success:true}";//返回json數據 } } 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,totalCount:0,data:[]}"; } this.Response.Clear(); this.Response.Write(json); this.Response.End(); return this.Response; }