예제 #1
0
        public string savadata(string json, string obj, string id)
        {
            string      rs = "";
            datacontext db = new datacontext();

            if (obj == "customer")
            {
                rs = db.customer(json, int.Parse(id));
            }
            else if (obj == "styleitem")
            {
                rs = db.styleItem(json, int.Parse(id));
            }
            else if (obj == "standard")
            {
                rs = db.standards(json, int.Parse(id));
            }
            else if (obj == "itemlist")
            {
                rs = db.itemlist(json, int.Parse(id));
            }
            else if (obj == "house")
            {
                rs = db.warehouse(json, int.Parse(id));
            }
            else if (obj == "employer")
            {
                rs = db.employee(json, int.Parse(id));
            }
            else if (obj == "billbuy")
            {
                rs = db.buybill(json, id);
            }
            else if (obj == "detailbuy")
            {
                rs = db.detailbuybill(json, id);
            }
            else if (obj == "subdetailbuybill")
            {
                rs = db.subdetailbuybill(json, id);
            }
            else if (obj == "ship")
            {
                rs = db.ship(json, id);
            }
            else if (obj == "subship")
            {
                rs = db.subship(json, int.Parse(id));
            }
            else if (obj == "payment")
            {
                rs = db.payment(json, id);
            }
            else if (obj == "editpayment")
            {
                rs = db.editpayment(json, id);
            }
            else if (obj == "paymentorder")
            {
                rs = db.paymentorder(json, id);
            }
            else if (obj == "orderbill")
            {
                rs = db.orderbill(json, id);
            }
            else if (obj == "carship")
            {
                rs = db.carship(json, id);
            }
            else if (obj == "Editcarship")
            {
                rs = db.Editcarship(json, id);
            }
            else if (obj == "detailorder")
            {
                rs = db.detailorder(json, id);
            }
            else if (obj == "serienumber")
            {
                rs = db.serinumber(json, id);
            }
            else if (obj == "inspection")
            {
                rs = db.inspection(json, id);
            }
            else if (obj == "plans")
            {
                rs = db.plans(json, id);
            }
            else if (obj == "changehouse")
            {
                rs = db.changehouse(json, id);
            }
            else if (obj == "detailchange")
            {
                rs = db.detailchange(json, id);
            }
            else if (obj == "TableErorr")
            {
                rs = db.tberorr(json, id);
            }
            else if (obj == "Table_qlt_erorr")
            {
                rs = db.table_detail_erorr_qlt(json, id);
            }
            else if (obj == "up_Table_qlt_erorr")
            {
                rs = db.update_table_detail_erorr_qlt(json, id);
            }
            return(rs);
        }