コード例 #1
0
    public static string DeleteSupplier(int id)
    {
        clsLst lst = new clsLst();
        lst.iSupplierId = id;
        string result = lst.InsertUpdateDeleteSuppliers(lst.TYPE_DELETE);

        return result;
    }
コード例 #2
0
    public static string CrudSupplier(int id, string name, int typeid, string contact1, string tel1, string contact2, string tel2, int type, string user, int pay)
    {
        clsLst lst = new clsLst();
        lst.iSupplierId = id;
        lst.sname = name;
        lst.iSupplierType = typeid;
        lst.iSupplierPay = pay;
        lst.scontact1 = contact1;
        lst.stel1 = tel1;
        lst.scontact2 = contact2;
        lst.stel2 = tel2;
        lst.sUser = user;
        ClsData data = new ClsData();

        string result = lst.InsertUpdateDeleteSuppliers(type);

        return result;
    }