Examples of Supplier


Examples of com.lgx8.gateway.entities.Supplier

      lid = Long.parseLong(id);
    } catch (Exception e1) {
      lid = -1;
    }
   
    Supplier supplier = gatewayService.findSupplier(lid);
   
    if(supplier!=null) {
      root.put("supplier", supplier);
      root.put("Supplier_List_Url", Constants.SUPPLIER_LIST_URL);
    }
View Full Code Here

Examples of com.lgx8.gateway.entities.Supplier

        out.flush();
        return;
      }
     
     
      Supplier supplier = new Supplier();
      supplier.setName(name);
      supplier.setDescription(description);
      supplier.setBusinessNum(businessNum);
      supplier.setLegalPerson(legalPerson);
      supplier.setMobile(mobile);
      supplier.setEmail(email);
      supplier.setQq(qq);
      supplier.setWangwang(wangwang);
      supplier.setAddress(address);
      supplier.setIsproduct(isProduct);
     
     
     
     
      gatewayService.createSupplier(supplier);
     
     
      out.print("({'result':'1','msg':'成功添加供应商!'})");
      out.flush();
      return;
    } else if("2".equals(operation)) {
      String id = request.getParameter("id");
     
      long lid = -1;
      try {
        lid = Long.parseLong(id);
      } catch (Exception e) {
        lid = -1;
      }
      ApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(this.getServletContext());
      IGatewayService gatewayService = (IGatewayService) ac.getBean("gatewayService");
     
      Supplier supplier = gatewayService.findSupplier(lid);
      if(supplier==null) {
        out.print("({'result':'0','msg':'修改的供应商信息不存在!'})");
        out.flush();
        return;
      }
     
      String name = request.getParameter("name");
      /*if(gatewayService.checkSupplierNameExists(name)) {
        out.print("({'result':'0','msg':'供应商名称已存在!'})");
        out.flush();
        return;
      }*/
     
      String description = request.getParameter("description");
      String businessNum = request.getParameter("businessNum");
      String legalPerson = request.getParameter("legalPerson");
      String mobile = request.getParameter("mobile");
      String email = request.getParameter("email");
      String qq = request.getParameter("qq");
      String wangwang = request.getParameter("wangwang");
      String address = request.getParameter("address");
      String isproduct = request.getParameter("isproduct");
      int isProduct = 1;
      if("0".equals(isproduct)) {
        isProduct = 0;
      }
     
      if(name==null||"".equals(name)) {
        out.print("({'result':'0','msg':'供应商名称不能为空!'})");
        out.flush();
        return;
      }
     
     
      supplier.setName(name);
      supplier.setDescription(description);
      supplier.setBusinessNum(businessNum);
      supplier.setLegalPerson(legalPerson);
      supplier.setMobile(mobile);
      supplier.setEmail(email);
      supplier.setQq(qq);
      supplier.setWangwang(wangwang);
      supplier.setAddress(address);
      supplier.setIsproduct(isProduct);
     
      gatewayService.updateSupplier(supplier);
     
      out.print("({'result':'1','msg':'修改供应商信息成功!'})");
      out.flush();
View Full Code Here

Examples of com.lgx8.gateway.entities.Supplier

      try {
        lsupplierid = Long.parseLong(supplierid);
      } catch (Exception e) {
        lsupplierid = -1;
      }
      Supplier supplier = gatewayService.findSupplier(lsupplierid);
      if(supplier==null) {
        out.print("({'result':'0','msg':'添加失败,未找到对应的供应商!'})");
        out.flush();
        return;
      }
     
      if(gatewayService.chechBrandNameExsits(name)) {
        out.print("({'result':'0','msg':'添加失败,品牌名称已存在!'})");
        out.flush();
        return;
      }
     
     
      brand.setSupplier(supplier);
     
      gatewayService.createBrand(brand);
     
     
      out.print("({'result':'1','msg':'成功添加品牌!'})");
      out.flush();
      return;
    } else if("2".equals(operation)) {
      String id = request.getParameter("id");
     
      long lid = -1;
      try {
        lid = Long.parseLong(id);
      } catch (Exception e) {
        lid = -1;
      }
      ApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(this.getServletContext());
      IGatewayService gatewayService = (IGatewayService) ac.getBean("gatewayService");
     
      Brand brand = gatewayService.findBrandById(lid);
      if(brand==null) {
        out.print("({'result':'0','msg':'修改的品牌信息不存在!'})");
        out.flush();
        return;
      }
      String name = request.getParameter("name");
     
      /*if(gatewayService.chechBrandNameExsits(name)) {
        out.print("({'result':'0','msg':'修改失败,品牌名称已存在!'})");
        out.flush();
        return;
      }*/
     
     
      String description = request.getParameter("description");
      String imageUrl = request.getParameter("imageUrl");
      String supplierid = request.getParameter("supplierid");
     
      brand.setName(name);
      brand.setDescription(description);
      brand.setImageUrl(imageUrl);
     
     
      long lsupplierid = -1;
      try {
        lsupplierid = Long.parseLong(supplierid);
      } catch (Exception e) {
        lsupplierid = -1;
      }
      Supplier supplier = gatewayService.findSupplier(lsupplierid);
      if(supplier==null) {
        out.print("({'result':'0','msg':'修改失败,未找到对应的供应商!'})");
        out.flush();
        return;
      }
View Full Code Here

Examples of com.swinarta.sunflower.core.model.Supplier

    Date returnDate = new Date();
    Integer supplierId = RequestUtil.getInteger(req.getData().get("supplierId"));
    String remarks = RequestUtil.getString(req.getData().get("remarks"));
    String invNumber = RequestUtil.getString(req.getData().get("invoiceNumber"));
   
    Supplier supplier = coreManager.get(Supplier.class, supplierId);
    Integer storeId = Integer.parseInt(properties.getProperty("curr.store.id"));
   
    ReturnToSupplier retSup = new ReturnToSupplier();
    retSup.setInvoiceNumber(invNumber);
    retSup.setRemarks(remarks);
View Full Code Here

Examples of entities.Supplier

    // Constructors
    // ------------
    public Bra() {
        // Explicitly call the superclass constructor to prevent the implicit call
        super();
        this.setSupplier(new Supplier());
        this.setMarkup(new DecimalNullable());

    }
View Full Code Here

Examples of entities.Supplier

    public int getStyle() {
        return this.style;
    }

    public void setSupplier(Supplier supplier) {
        Supplier oldValue = this.supplier;
        this.supplier = supplier;
        this.qq_Listeners.firePropertyChange("supplier", oldValue, this.supplier);
    }
View Full Code Here

Examples of entities.Supplier

                else if (qq_currentEvent.isEvent(PushButton_Click_getqq_One)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        this.getTheBra().setStyle(3);
                        this.getTheBra().setSupplier(new Supplier());
                        this.getAddr().getAddressx().getStreet().setValue( "qxqxqxqxqxq" );
                        this.getMargin().setValue(30.0);

                        // ================ End Forte Event Handler Translation ================
                    }
View Full Code Here

Examples of net.caece.fmII.hibernate.Supplier

    public void refreshObjEntities() {
        refreshObjEntities("Supplier.getAll", objListRenderer);
    }

    public void add() {
        Supplier obj = (Supplier) viewToObj(null);
        SupplierDao dao = new SupplierDao();
        add(dao, obj);
    }
View Full Code Here

Examples of net.caece.fmII.hibernate.Supplier

        SupplierDao dao = new SupplierDao();
        add(dao, obj);
    }

    public void update() {
        Supplier obj = (Supplier) objListbox.getSelectedItem().getValue();
        SupplierDao dao = new SupplierDao();
        update(dao, obj);
    }
View Full Code Here

Examples of net.caece.fmII.hibernate.Supplier

        update(dao, obj);
    }

    public void delete() {

        Supplier obj = (Supplier) objListbox.getSelectedItem().getValue();
        SupplierDao dao = new SupplierDao();
        delete(dao, obj);

        // empty all fields
        Supplier emptyObj = new Supplier();
        objToView(emptyObj);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.