Esempio n. 1
0
 public static void RemoveAccountFromGrid(DataGrid objDataGrid, dhJournalDetail objectToRemove, dhDBnames ObjDbName, bool?iSDraft)
 {
     try
     {
         if (objblAccount == null)
         {
             objblAccount = new blAccount();
         }
         {
             objblAccount.RemoveAccountFromGrid(objDataGrid, objectToRemove, ObjDbName, iSDraft);
         }
     }
     catch (Exception ex) { throw ex; }
 }
Esempio n. 2
0
        //public static string GetProcessorID()
        //{

        //    string sProcessorID = "";

        //    string sQuery = "SELECT ProcessorId FROM Win32_Processor";

        //    ManagementObjectSearcher oManagementObjectSearcher = new ManagementObjectSearcher(sQuery);

        //    ManagementObjectCollection oCollection = oManagementObjectSearcher.Get();

        //    foreach (ManagementObject oManagementObject in oCollection)
        //    {

        //        sProcessorID = (string)oManagementObject["ProcessorId"];

        //    }

        //    return (sProcessorID);

        //}

        public static void InsertNewAccount(DataGrid grdItems, dhJournalDetail newItem)
        {
            try
            {
                if (objblAccount == null)
                {
                    objblAccount = new blAccount();
                }
                {
                    objblAccount.InsertNewAccount(grdItems, newItem);
                }
            }
            catch (Exception ex) { throw ex; }
        }
Esempio n. 3
0
        public static DataSet InsertUpdateAccount(dhDBnames objDBNames, dhAccount objAccounts)
        {
            try
            {
                DataSet var_ret;

                if (objblAccount == null)
                {
                    objblAccount = new blAccount();
                }
                var_ret = objblAccount.InsertUpdateAccounts(objDBNames, objAccounts);

                return(var_ret);
            }
            catch (Exception ex) { throw ex; }
        }
Esempio n. 4
0
        public static dsGeneral.dtPosFinaceTypeDataTable GetFinaceType(dhDBnames objDBNames, dhAccount objAccounts)
        {
            try
            {
                dsGeneral.dtPosFinaceTypeDataTable var_ret;

                if (objblAccount == null)
                {
                    objblAccount = new blAccount();
                }
                var_ret = objblAccount.GetFinaceType(objDBNames, objAccounts);

                return(var_ret);
            }
            catch (Exception ex) { throw ex; }
        }
Esempio n. 5
0
        public static DataSet GetDailyIncom(dhDBnames dhDBnames, dhAccount objAccount)
        {
            try
            {
                DataSet var_ret;

                if (objblAccount == null)
                {
                    objblAccount = new blAccount();
                }
                var_ret = objblAccount.GetDailyIncom(dhDBnames, objAccount);

                return(var_ret);
            }
            catch (Exception ex) { throw ex; }
        }
Esempio n. 6
0
        public static dhAccount GetdhAccount(dhDBnames objDBNames, dhAccount objAccount)
        {
            try
            {
                dhAccount var_ret = null;

                if (objblAccount == null)
                {
                    objblAccount = new blAccount();
                }
                {
                    var_ret = objblAccount.GetdhAccount(objDBNames, objAccount);
                }

                return(var_ret);
            }
            catch (Exception ex) { throw ex; }
        }