Пример #1
0
        private string newSalesOrder(int customerledger, string customername, int salesmanid, string username)
        {
            string soNo = string.Empty;
            string outsms = string.Empty, outemail = string.Empty;
            string errstring = string.Empty;
            int    revno     = 0;
            int    errno     = 0;

            obj = new DAL_SalesOrder();
            csSalesOrder objcsSO = CreateSOObject(customerledger, customername, salesmanid, username);

            BusinessPeriodID = objcsSO.objSalesOrderMain.int_BusinessPeriodID;
            errstring        = obj.Update_SalesOrder(DBPath, DBPwd, ref soNo, ref revno, objcsSO, ref outsms, ref outemail, ref errno);

            return(soNo);
        }
Пример #2
0
        private string createSalesOrder(int customerledger, string customername, int salesmanid, string username, Byte[] image, string imagename, string imagetype)
        {
            string soNo = string.Empty;
            string outsms = string.Empty, outemail = string.Empty;
            string errstring = string.Empty;
            int    revno     = 0;
            int    errno     = 0;

            obj = new DAL_SalesOrder();
            csSalesOrder objcsSO = CreateSOObject(customerledger, customername, salesmanid, username);

            errstring = obj.Update_SalesOrder(DBPath, DBPwd, ref soNo, ref revno, objcsSO, ref outsms, ref outemail, ref errno);
            //errstring = obj.Update_Quotation(ref qtnNo, ref revno, objcsqtn, ref outsms, ref outemail, ref errno);
            if (errstring == "" && soNo != "")
            {
                UpdateImage(objcsSO.int_CID.ToString(), PREFIX + soNo, image, imagename, imagetype, username);
            }

            return(soNo);
        }