Example #1
0
        void IInOutBLL.ChangeCGOrder(co_t_order_main ord, List <co_t_order_child> lines)
        {
            Helper.JsonRequest r = new Helper.JsonRequest();
            r.Write(ord);
            r.Write("lines", lines);

            r.request("/inout?t=change_cgorder");

            if (!r.ReadSuccess())
            {
                throw new Exception(r.ReadMessage());
            }
        }
Example #2
0
        void IInOutBLL.DeleteCGOrder(string sheet_no, DateTime update_time)
        {
            Helper.JsonRequest r = new Helper.JsonRequest();
            r.Write("sheet_no", sheet_no);
            r.Write("update_time", update_time);

            r.request("/inout?t=delete_cgorder");

            if (!r.ReadSuccess())
            {
                throw new Exception(r.ReadMessage());
            }
        }
Example #3
0
        void IBLL.IInOutBLL.ChangeSaleSSSheet(Model.co_t_order_main ord, List <Model.co_t_order_child> lines)
        {
            Helper.JsonRequest r = new Helper.JsonRequest();
            r.Write(ord);
            r.Write("lines", lines);

            r.request("/inout?t=change_salesssheet");

            if (!r.ReadSuccess())
            {
                throw new Exception(r.ReadMessage());
            }
        }
Example #4
0
        void IInOutBLL.CheckCGOrder(string sheet_no, string approve_man, DateTime update_time)
        {
            Helper.JsonRequest r = new Helper.JsonRequest();
            r.Write("sheet_no", sheet_no);
            r.Write("approve_man", approve_man);
            r.Write("update_time", update_time);

            r.request("/inout?t=check_cgorder");

            if (!r.ReadSuccess())
            {
                throw new Exception(r.ReadMessage());
            }
        }
Example #5
0
        void IInOutBLL.AddCGOrder(co_t_order_main ord, List <co_t_order_child> lines, out string sheet_no)
        {
            Helper.JsonRequest r = new Helper.JsonRequest();
            r.Write(ord);
            r.Write("lines", lines);

            r.request("/inout?t=add_cgorder");

            if (!r.ReadSuccess())
            {
                throw new Exception(r.ReadMessage());
            }

            sheet_no = r.Read("sheet_no");
        }
Example #6
0
        DataTable IInOutBLL.GetImportCGOrder()
        {
            Helper.JsonRequest r = new Helper.JsonRequest();

            r.request("/inout?t=GetImportCGOrder");

            if (!r.ReadSuccess())
            {
                throw new Exception(r.ReadMessage());
            }

            DataTable tb = r.GetDataTable();

            return(tb);
        }
Example #7
0
        DataTable IInOutBLL.GetCGOrderList(DateTime date1, DateTime date2, string sup_no, string order_main)
        {
            Helper.JsonRequest r = new Helper.JsonRequest();
            r.Write("date1", date1.Toyyyy_MM_dd());
            r.Write("date2", date2.Toyyyy_MM_dd());
            r.Write("sup_no", sup_no);
            r.Write("order_main", order_main);

            r.request("/inout?t=get_cgorder_list");

            if (!r.ReadSuccess())
            {
                throw new Exception(r.ReadMessage());
            }

            DataTable tb = r.GetDataTable();

            return(tb);
        }
Example #8
0
        string ICommonBLL.IsServer(string ip, string port)
        {
            try
            {
                Helper.JsonRequest r = new Helper.JsonRequest();

                r.request(ip, port, "/common?t=connect_server");

                if (!r.ReadSuccess())
                {
                    throw new Exception(r.ReadMessage());
                }

                string is_connect = r.Read("is_connect");
                return(is_connect);
            }
            catch (Exception e)
            {
                return("0");
            }
        }
Example #9
0
        void IInOutBLL.GetCGOrder(string sheet_no, out DataTable tb1, out DataTable tb2)
        {
            Helper.JsonRequest r = new Helper.JsonRequest();
            r.Write("sheet_no", sheet_no);

            r.request("/inout?t=get_cgorder");

            if (!r.ReadSuccess())
            {
                throw new Exception(r.ReadMessage());
            }

            tb1 = r.GetDataTable("tb1");

            if (tb1 == null || tb1.Rows.Count < 1)
            {
                throw new Exception("不存在单据!");
            }

            tb2 = r.GetDataTable("tb2");
        }