예제 #1
0
 public void ImportEmployees()
 {
     if (ImportUI.ImportEmployees())
     {
         GenerateEmployeeList();
     }
 }
예제 #2
0
        public void FireNewEntity()
        {
            if (ReadOnly)
            {
                return;
            }

            if (ImportUI.ImportCountries())
            {
                CountryList = ClientEnvironment.CountryService.FindAll();
            }
        }
예제 #3
0
 private void nb_NewStore_LinkClicked(object sender, NavBarLinkEventArgs e)
 {
     if (ImportUI.ImportStores())
     {
         if (_storeList != null)
         {
             _storeList.ReloadData();
         }
         else
         {
             Context.ListOfStoresView.LoadAll();
         }
     }
 }
예제 #4
0
 public void ImportEmployee()
 {
     if (ImportUI.ImportEmployees())
     {
         bandedGridViewEmployees.BeginDataUpdate();
         try
         {
             GenerateEmployeeList();
         }
         finally
         {
             bandedGridViewEmployees.EndDataUpdate();
         }
     }
 }
예제 #5
0
        private void bi_ImportLongTimeAbsence_LinkClicked(object sender, NavBarLinkEventArgs e)
        {
            if (ImportUI.ImportLongTimeAbsences())
            {
            }

            /*using (FrmImport frmImport = new FrmImport(ClientEnvironment.CountryService, ClientEnvironment.RegionService, ClientEnvironment.StoreService, ClientEnvironment.EmployeeService, Baumax.Import.ImportType.LongTimeAbsence))
             * {
             *  frmImport.ShowDialog();
             *  if (frmImport.BeenRunSuccessfully)
             *  {
             *
             *  }
             * }*/
        }
        public static StringBuilder GetMain()
        {
            StringBuilder _str = new StringBuilder();

            _str.AppendLine("<div class='ui horizontal divider header container'>");
            _str.AppendLine("   <i class='upload icon font-th regular black'></i>&nbsp;");
            _str.AppendLine("   <span class='lang lang-th f7 font-th regular black'>นำเข้าผู้สมัครรับทุน</span>");
            _str.AppendLine("   <span class='lang lang-en f7 font-en regular black'>Import Register Scholarship</span>");
            _str.AppendLine("</div>");
            _str.AppendLine("<div class='paddingTop10'>");
            _str.AppendFormat(" <div class='ui container' id='{0}'>", _idContent);
            _str.AppendFormat("     <div class='mini ui button' id='{0}-btndownload'>", _idContent);
            _str.AppendLine("           <i class='file excel outline icon font-th regular black'></i>");
            _str.AppendLine("           <span class='lang lang-th f9 font-th regular black'>ดาวน์โหลดแบบบันทึกการรับทุน</span>");
            _str.AppendLine("           <span class='lang lang-en f9 font-en regular black'>Download Scholarship Register Template</span>");
            _str.AppendLine("       </div>");
            _str.AppendFormat("     <div id='{0}'>{1}</div>", ImportUI._idContent, ImportUI.GetMain());
            _str.AppendFormat("     <div id='{0}'></div>", ListUI._idContent);
            _str.AppendLine("   </div>");
            _str.AppendLine("</div>");

            return(_str);
        }
예제 #7
0
        public override void Add()
        {
            if (ReadOnly)
            {
                return;
            }

            if (ImportUI.ImportRegions())
            {
                LoadRegions();
            }

            /*Baumax.Import.UI.FrmImport frmImport = new Baumax.Import.UI.FrmImport(ClientEnvironment.CountryService, ClientEnvironment.RegionService, ClientEnvironment.StoreService, ClientEnvironment.EmployeeService, Baumax.Import.ImportType.Region);
             * frmImport.ShowDialog();
             * if (frmImport.BeenRunSuccessfully)
             * {
             *  LoadRegions();
             * }*/


            /*
             * Domain.Region r = ClientEnvironment.RegionService.CreateEntity();
             * r.LanguageID = Baumax.Contract.SharedConsts.NeutralLangId;
             * using (RegionFrm frm = new RegionFrm())
             * {
             *  frm.Entity = r;
             *  if (frm.ShowDialog(this) == DialogResult.OK && frm.Modified)
             *  {
             *      if (r.IsNew)
             *          r = ClientEnvironment.RegionService.Save(r);
             *      else
             *          ClientEnvironment.RegionService.SaveOrUpdate(r);
             *      _entityList.Add(new RegionView(r));
             *  }
             * }
             */
        }
예제 #8
0
파일: MainForm.cs 프로젝트: 5509850/baumax
 private void mennu_importEmployee_itemClick(object sender, ItemClickEventArgs e)
 {
     ImportUI.ImportEmployees();
 }
예제 #9
0
파일: MainForm.cs 프로젝트: 5509850/baumax
 private void menu_importWGR_ItemClick(object sender, ItemClickEventArgs e)
 {
     ImportUI.ImportWgrs();
 }
예제 #10
0
파일: MainForm.cs 프로젝트: 5509850/baumax
 private void menu_importWorld_itemClick(object sender, ItemClickEventArgs e)
 {
     ImportUI.ImportWorlds();
 }
예제 #11
0
파일: MainForm.cs 프로젝트: 5509850/baumax
 private void menu_importStore_itemClick(object sender, ItemClickEventArgs e)
 {
     ImportUI.ImportStores();
 }
예제 #12
0
파일: MainForm.cs 프로젝트: 5509850/baumax
 private void menu_importRegion_ItemClick(object sender, ItemClickEventArgs e)
 {
     ImportUI.ImportRegions();
 }
예제 #13
0
파일: MainForm.cs 프로젝트: 5509850/baumax
 private void menu_importcountry_itemClick(object sender, ItemClickEventArgs e)
 {
     ImportUI.ImportCountries();
 }
예제 #14
0
 private void nbi_ImportWgrs_LinkClicked(object sender, NavBarLinkEventArgs e)
 {
     ImportUI.ImportWgrs();
 }
예제 #15
0
 private void ImportWgrClick(object sender, NavBarLinkEventArgs e)
 {
     ImportUI.ImportWgrs();
     m_context.Invalidate();
 }
예제 #16
0
파일: MainForm.cs 프로젝트: 5509850/baumax
 private void menu_importCash_ItemClick(object sender, ItemClickEventArgs e)
 {
     ImportUI.ImportCashRegisterReceipt();
 }
예제 #17
0
파일: MainForm.cs 프로젝트: 5509850/baumax
 private void menu_importBuissness_itemClick(object sender, ItemClickEventArgs e)
 {
     ImportUI.ImportBusinessVolume();
 }
예제 #18
0
파일: MainForm.cs 프로젝트: 5509850/baumax
 private void bi_ImportCountry_ItemClick(object sender, ItemClickEventArgs e)
 {
     ClearPressedButtons();
     // acpro item #124036
     // simply closing current UC and clearing out client part of main form
     // when the one of import routines is called
     CurrentUC = null;
     if (e.Item == bi_ImportCountry)
     {
         ImportUI.ImportCountries();
     }
     else if (e.Item == bi_ImportRegion)
     {
         ImportUI.ImportRegions();
     }
     else if (e.Item == bi_ImportStore)
     {
         ImportUI.ImportStores();
     }
     else if (e.Item == bi_ImportWorld)
     {
         ImportUI.ImportWorlds();
     }
     else if (e.Item == bi_ImportHWGR)
     {
         ImportUI.ImportHwgrs();
     }
     else if (e.Item == bi_ImportWGR)
     {
         ImportUI.ImportWgrs();
     }
     else if (e.Item == bi_ImportEmployee)
     {
         ImportUI.ImportEmployees();
     }
     else if (e.Item == bi_ImportLongTimeAbsence)
     {
         ImportUI.ImportLongTimeAbsences();
     }
     else if (e.Item == bi_ImportFeast)
     {
         ImportUI.ImportFeasts();
     }
     else if (e.Item == bi_ImportClosedDay)
     {
         ImportUI.ImportWorkingDays();
     }
     else if (e.Item == bi_ImportCashRegisterReceipt)
     {
         ImportUI.ImportCashRegisterReceipt();
     }
     else if (e.Item == bi_ImportTargetBusinessVolume)
     {
         ImportUI.ImportTargetBusinessVolume();
     }
     else if (e.Item == bi_ImportBusinessVolume)
     {
         ImportUI.ImportBusinessVolume();
     }
     else if (e.Item == bi_ImportTimePlanning)
     {
         ImportUI.ImportTimePlanning();
     }
     else if (e.Item == bi_ImportTimeRecording)
     {
         ImportUI.ImportTimeRecording();
     }
 }