Пример #1
0
 public PaymentController()
 {
     glog.Debug("PaymentController: Entry");
     _clsGlobal  = new clsGlobal();
     _clsPayment = new clsPayment();
     glog.Debug("PaymentController: Exit");
 }
 public SecurityController()
 {
     _clsSecurity = new clsSecurity();
     _clsGlobal   = new clsGlobal();
     _clsCRM      = new clsCRM();
     _clsAsset    = new clsAsset();
 }
 public ApprovalController()
 {
     glog.Debug("ApprovalController: Entry");
     _clsGlobal   = new clsGlobal();
     _clsApproval = new clsApproval();
     glog.Debug("ApprovalController: Exit");
 }
Пример #4
0
        public static AuthViewModel ReturnNavigationPartial(string userGroupCode)
        {
            AuthViewModel mm = new AuthViewModel();

            _clsGlobal = new clsGlobal();
            try
            {
                DataTable dt = new DataTable();
                dt = _clsGlobal.GetMenu(userGroupCode, System.Configuration.ConfigurationManager.AppSettings["VirtualDirectory"]);

                if (dt.Rows.Count > 0)
                {
                    mm.pstrMenu = dt.Rows[0]["FinalCode"].ToString();
                }
                else
                {
                    mm.pstrMenu = "";
                }
            }
            catch (Exception ex)
            {
                glog.Error(ex.Message);
            }
            return(mm);
        }
 public MainActivity()
 {
     try
     {
         clsGLB = new clsGlobal();
     }
     catch (Exception ex)
     {
         Toast.MakeText(this, ex.Message, ToastLength.Long).Show();
     }
 }
 public HomeFragment()
 {
     try
     {
         clsGLB        = new clsGlobal();
         creditDebitDb = new CreditDebitDb();
     }
     catch (Exception ex)
     {
         Toast.MakeText(Activity, ex.Message, ToastLength.Long).Show();
     }
 }
Пример #7
0
 public CreditDebitHistoryActivity()
 {
     try
     {
         clsGLB        = new clsGlobal();
         creditDebitDb = new CreditDebitDb();
     }
     catch (Exception ex)
     {
         Toast.MakeText(this, ex.Message, ToastLength.Long).Show();
     }
 }
Пример #8
0
 public SettingActivity()
 {
     try
     {
         clsGLB   = new clsGlobal();
         oNetwork = new clsNetwork();
     }
     catch (Exception ex)
     {
         Toast.MakeText(this, ex.Message, ToastLength.Long).Show();
     }
 }
Пример #9
0
        private void FillTable(int NumDocumento)
        {
            clsDebito debito_class = new clsDebito();

            clsGlobal     global_class = new clsGlobal();
            Dados_Basicos regDados     = global_class.Retorna_Dados_Basicos(debito_class.CodigoCIP(NumDocumento));

            IM.Text             = regDados.codigo_reduzido.ToString();
            NOME.Text           = regDados.nome;
            ENDERECOIMOVEL.Text = regDados.endereco + ", " + regDados.numero.ToString() + " " + regDados.complemento.ToString();
            BAIRRO.Text         = regDados.nome_bairro.ToString();
        }
Пример #10
0
 public MainActivity()
 {
     try
     {
         clsGLB        = new clsGlobal();
         creditDebitDb = new CreditDebitDb();
         //Set DBFilePath
         string folderPath = Path.Combine(clsGlobal.FilePath, clsGlobal.FileFolder);
         clsGlobal.DBFilePath = Path.Combine(folderPath, clsGlobal.DBFileName);
     }
     catch (Exception ex)
     {
         Toast.MakeText(this, ex.Message, ToastLength.Long).Show();
     }
 }
 public clsPayment()
 {
     _clsGlobal = new clsGlobal();
     _clsCRM    = new clsCRM();
 }
Пример #12
0
 public LEFSInterestCodeController()
 {
     _clsLEFSInterestCode = new clsLEFSInterestCode();
     _clsGlobal           = new clsGlobal();
 }
Пример #13
0
 public AuthController()
 {
     _clsGlobal = new clsGlobal();
 }
Пример #14
0
 public ListOfValueController()
 {
     _clsGlobal      = new clsGlobal();
     _clsListOfValue = new clsListOfValue();
     _clsPreCon      = new clsPreCon();
 }
Пример #15
0
        //-- function --
        string ReceiveItemFunc(sapi.db db, Dictionary <string, string> vals, string mySt)
        {
            Dictionary <string, string> aVal = new Dictionary <string, string>();
            string re         = "";
            string screen     = "tblReceiveNew";
            string screenItem = "tblReceiveItemNew";
            string whid       = "0";

            sapi.sapi cls = new sapi.sapi();
            db.beginTran();
            re = cls.saveRecord(screen, vals, db, aVal, ignoreROF: true);
            var str = JsonConvert.DeserializeObject <dynamic>(re);

            if (str.tbl != null)
            {
                if (str.tbl[0].status == "ok")
                {
                    whid = vals["rece_WarehouseID".ToLower()];
                    clsGlobal clsglobal = new clsGlobal();
                    string    hid       = (string)str.tbl[0].msg;
                    aVal.Clear();
                    aVal.Add("reit_receiveid", hid);
                    //foreach (var st in Request.Form["N"].ToString().Split(','))
                    foreach (var st in mySt.ToString().Split(','))
                    {
                        {
                            string re2 = "";
                            Dictionary <string, string> v = cls.getItemVals(screenItem, vals, db, st);

                            v.Add("rece_Date".ToLower(), vals["rece_Date".ToLower()]);
                            double quit_Qty   = 0;
                            double quit_Price = 0;
                            if (v.ContainsKey("reit_Qty".ToLower()))
                            {
                                quit_Qty = db.cNum(v["reit_Qty".ToLower()]);
                            }
                            if (v.ContainsKey("reit_Price".ToLower()))
                            {
                                quit_Price = db.cNum(v["reit_Price".ToLower()]);
                            }

                            if (v.ContainsKey("reit_Total".ToLower()))
                            {
                                v["reit_Total".ToLower()] = (quit_Qty * quit_Price).ToString();
                            }
                            else
                            {
                                v.Add("reit_Total".ToLower(), (quit_Qty * quit_Price).ToString());
                            }
                            re2 = cls.saveRecord(screenItem, v, db, aVal, st);
                            str = JsonConvert.DeserializeObject <dynamic>(re2);
                            if (str.tbl != null)
                            {
                                if (str.tbl[0].status != "ok")
                                {
                                    db.rollback();
                                    return(re2);
                                }
                                else
                                {
                                    clsglobal.receiveItem(db, v, whid);
                                }
                            }
                        }
                    }
                    clsglobal.ReceiveTotal(hid, db);
                }
            }
            db.commit();
            return(re);
        }
Пример #16
0
 public clsListOfValue()
 {
     _clsGlobal = new clsGlobal();
 }