Beispiel #1
0
        //
        public ActionResult AddProductSupplier(string supplier, int proid)
        {
            ComResult com = new ComResult();

            try
            {
                base_prod_supp_rel suppid = _service.AddProductSupplier(supplier, proid);
                if (null == suppid)
                {
                    com.Msg   = "添加失败";
                    com.State = 0;
                    return(Json(com));
                }
                else
                {
                    com.Msg        = "";
                    com.State      = 1;
                    com.DataResult = suppid;
                    return(Json(com));
                }
            }
            catch (Exception ex)
            {
                com.Msg   = ex.Message;
                com.State = 0;
                return(Json(com));
            }
        }