Ejemplo n.º 1
0
        public static T_InvoiceHed FindExisitingInvoiceAll(string suppcode)
        {
            string       str = "";
            T_InvoiceHed cat = new T_InvoiceHed();

            if (T_InvoiceHedDL.ExistingT_InvoiceHed(suppcode.Trim()))
            {
                cat.InvID = suppcode.Trim();
                T_InvoiceHedDL dl = new T_InvoiceHedDL();
                cat = dl.Selectt_InvoiceHed(cat);
                str = cat.NetAmt.ToString();
            }
            else
            {
            }
            return(cat);
        }
Ejemplo n.º 2
0
        public static string FindExisitingInvoice(string suppcode)
        {
            string str = "";

            if (T_InvoiceHedDL.ExistingT_InvoiceHed(suppcode.Trim()))
            {
                T_InvoiceHed cat = new T_InvoiceHed();
                cat.InvID = suppcode.Trim();
                T_InvoiceHedDL dl = new T_InvoiceHedDL();
                cat = dl.Selectt_InvoiceHed(cat);
                str = cat.NetAmt.ToString();
            }
            else
            {
                str = "<Error!!!>";
            }
            return(str);
        }