コード例 #1
0
 public ActionResult Update(RentOrder rentOrder)
 {
     return(Json(rentOrderOper.Update(rentOrder,
                                      delegate(object sender, ISession session) {
         //判断是否存在领用主单号
         IsExistsCode(session, rentOrder);
     }
                                      )));
 }
コード例 #2
0
 public ActionResult Update(SellOrder sellOrder)
 {
     return(Json(sellOrderOper.Update(sellOrder,
                                      delegate(object sender, ISession session) {
         //判断是否存在销售主单号
         IsExistsCode(session, sellOrder);
     }
                                      )));
 }
コード例 #3
0
 public ActionResult Update(CheckStock checkStock)
 {
     return(Json(checkStockOper.Update(checkStock,
                                       delegate(object sender, ISession session) {
         //判断是否存在盘点主单号
         IsExistsCode(session, checkStock);
     }
                                       )));
 }
コード例 #4
0
 public ActionResult Update(Unit unit)
 {
     return(Json(unitOper.Update(unit,
                                 delegate(object sender, ISession session)
     {
         //判断是否存在部门Code
         IsExistsName(session, unit);
     }
                                 )));
 }
コード例 #5
0
 public ActionResult Update(GoodsType goodsType)
 {
     return(Json(goodsTypeOper.Update(goodsType,
                                      delegate(object sender, ISession session)
     {
         //判断是否存在商品资料Code
         IsExistsCode(session, goodsType);
     }
                                      )));
 }
コード例 #6
0
 public ActionResult Update(PurOrderDetail purOrderDetail)
 {
     return(Json(purOrderDetailOper.Update(purOrderDetail,
                                           delegate(object sender, ISession session)
     {
         //判断是否存在采购明细单号
         IsExistsCode(session, purOrderDetail);
     }
                                           )));
 }
コード例 #7
0
 public ActionResult Update(RetOrderDetail retOrderDetail)
 {
     return(Json(retOrderDetailOper.Update(retOrderDetail,
                                           delegate(object sender, ISession session)
     {
         //判断是否存在退货明细单号
         IsExistsCode(session, retOrderDetail);
     }
                                           )));
 }
コード例 #8
0
 public ActionResult Update(CheckStockDetail checkStockDetail)
 {
     return(Json(checkStockDetailOper.Update(checkStockDetail,
                                             delegate(object sender, ISession session)
     {
         //判断是否存在盘点明细单号
         IsExistsCode(session, checkStockDetail);
     }
                                             )));
 }
コード例 #9
0
ファイル: ModFuncController.cs プロジェクト: chnanli/EasyJob
 public ActionResult Update(ModFunc modFunc)
 {
     return(Json(modFuncOper.Update(modFunc,
                                    delegate(object sender, ISession session)
     {
         //判断是否存在模块功能
         IsExists(session, modFunc);
     }
                                    )));
 }
コード例 #10
0
 public ActionResult Update(StorageAlarm storageAlarm)
 {
     return(Json(storageAlarmOper.Update(storageAlarm,
                                         delegate(object sender, ISession session)
     {
         //判断是否存在库存数据
         IsExists(session, storageAlarm);
     }
                                         )));
 }
コード例 #11
0
 public ActionResult Update(SellPriceInfo sellPriceInfo)
 {
     return(Json(sellPriceInfoOper.Update(sellPriceInfo,
                                          delegate(object sender, ISession session)
     {
         //判断是否存在销售价格管理(商品资料子表)
         IsExists(session, sellPriceInfo);
     }
                                          )));
 }
コード例 #12
0
 public ActionResult Update(StockInit stockInit)
 {
     return(Json(stockInitOper.Update(stockInit,
                                      delegate(object sender, ISession session)
     {
         //判断是否存在库存数据
         IsExists(session, stockInit);
     }
                                      )));
 }
コード例 #13
0
ファイル: PurOrderController.cs プロジェクト: chnanli/EasyJob
 public ActionResult Update(PurOrder purOrder)
 {
     return(Json(purOrderOper.Update(purOrder,
                                     delegate(object sender, ISession session)
     {
         //判断是否存在采购主单号
         IsExistsCode(session, purOrder);
     }
                                     )));
 }
コード例 #14
0
 public ActionResult Update(SellOrderDetail sellOrderDetail)
 {
     return(Json(sellOrderDetailOper.Update(sellOrderDetail,
                                            delegate(object sender, ISession session)
     {
         //判断是否存在销售明细单号
         IsExistsCode(session, sellOrderDetail);
     }
                                            )));
 }
コード例 #15
0
 public ActionResult Update(Position position)
 {
     return(Json(positionOper.Update(position,
                                     delegate(object sender, ISession session)
     {
         //判断是否存在部门Code
         IsExistsCode(session, position);
     }
                                     )));
 }
コード例 #16
0
 public ActionResult Update(Garden garden)
 {
     //根据地址码获取地址
     garden.Addr = PojoUtil.GetAddrForCode(HibernateOper, garden.AddrCode);
     LocationUtil.Location loc = LocationUtil.GetLocation(garden.Addr + garden.Location);
     if (loc != null)
     {
         garden.Lat = loc.lat;
         garden.Lng = loc.lng;
     }
     return(Json(gardenOper.Update(garden)));
 }
コード例 #17
0
 public ActionResult Update(Company company)
 {
     //根据地址码获取地址
     company.Addr = PojoUtil.GetAddrForCode(HibernateOper, company.AddrCode);
     LocationUtil.Location loc = LocationUtil.GetLocation(company.Addr + company.Location);
     if (loc != null)
     {
         company.Lat = loc.lat;
         company.Lng = loc.lng;
     }
     return(Json(companyOper.Update(company)));
 }
コード例 #18
0
 public ActionResult Update(GoodsInfo goodsInfo)
 {
     return(Json(goodsInfoOper.Update(goodsInfo,
                                      delegate(object sender, ISession session)
     {
         //判断是否存在商品资料Code
         IsExistsCode(session, goodsInfo);
         //判断是否存在商品资料BarCode
         IsExistsBarCode(session, goodsInfo);
     }
                                      )));
 }
コード例 #19
0
        public ActionResult UpdatePwd(string oldPwd, string newPwd)
        {
            bool retVal = false;

            //由工号与密码查找员工
            Employee emp = GetEmpForCodeAndPwd(MySelf.Code, oldPwd);

            if (emp != null)
            {
                //修改密码
                emp.PwdWeb = newPwd;
                retVal     = employeeOper.Update(emp);
                //保存到SESSION
                MySelf = emp;
            }
            else
            {
                throw new Exceptions.PwdErrorException();//密码错误
            }

            return(Json(retVal));
        }
コード例 #20
0
 public ActionResult Update(VendorInfo vendorInfo)
 {
     //根据地址码获取地址
     vendorInfo.Addr = PojoUtil.GetAddrForCode(HibernateOper, vendorInfo.AddrCode);
     LocationUtil.Location loc = LocationUtil.GetLocation(vendorInfo.Addr + vendorInfo.Location);
     if (loc != null)
     {
         vendorInfo.Lat = loc.lat;
         vendorInfo.Lng = loc.lng;
     }
     return(Json(vendorInfoOper.Update(vendorInfo,
                                       delegate(object sender, ISession session)
     {
         //判断是否存在部门Code
         IsExistsCode(session, vendorInfo);
     }
                                       )));
 }
コード例 #21
0
 public ActionResult Update(Storehouse storehouse)
 {
     //根据地址码获取地址
     storehouse.Addr = PojoUtil.GetAddrForCode(HibernateOper, storehouse.AddrCode);
     LocationUtil.Location loc = LocationUtil.GetLocation(storehouse.Addr + storehouse.Location);
     if (loc != null)
     {
         storehouse.Lat = loc.lat;
         storehouse.Lng = loc.lng;
     }
     return(Json(storehouseOper.Update(storehouse,
                                       delegate(object sender, ISession session)
     {
         //判断是否存在库存Code
         IsExistsCode(session, storehouse);
     }
                                       )));
 }
コード例 #22
0
 public ActionResult Update(Department department)
 {
     //根据地址码获取地址
     department.Addr = PojoUtil.GetAddrForCode(HibernateOper, department.AddrCode);
     LocationUtil.Location loc = LocationUtil.GetLocation(department.Addr + department.Location);
     if (loc != null)
     {
         department.Lat = loc.lat;
         department.Lng = loc.lng;
     }
     return(Json(departmentOper.Update(department,
                                       delegate(object sender, ISession session)
     {
         //判断是否存在部门Code
         IsExistsCode(session, department);
     }
                                       )));
 }
コード例 #23
0
 public ActionResult UpdateWorkCodeType1(WorkCodeType1 workCodeType1)
 {
     return(Json(workCodeType1Oper.Update(workCodeType1)));
 }
コード例 #24
0
 public ActionResult Update(Customer customer)
 {
     return(Json(customerOper.Update(customer)));
 }
コード例 #25
0
 public ActionResult Update(EmpModFunc empModFunc)
 {
     return(Json(empModFuncOper.Update(empModFunc)));
 }
コード例 #26
0
ファイル: EmpModController.cs プロジェクト: chnanli/EasyJob
 public ActionResult Update(EmpMod empMod)
 {
     return(Json(empModOper.Update(empMod)));
 }
コード例 #27
0
 public ActionResult Update(Photo photo)
 {
     return(Json(photoOper.Update(photo)));
 }
コード例 #28
0
 public ActionResult Update(Mod mod)
 {
     return(Json(modOper.Update(mod)));
 }
コード例 #29
0
 public ActionResult UpdateWorkCodeType2(WorkCodeType2 workCodeType2)
 {
     return(Json(workCodeType2Oper.Update(workCodeType2)));
 }
コード例 #30
0
 public ActionResult Update(WorkCodeType workCodeType)
 {
     return(Json(workCodeTypeOper.Update(workCodeType)));
 }