public void ImportEmployees() { if (ImportUI.ImportEmployees()) { GenerateEmployeeList(); } }
public void FireNewEntity() { if (ReadOnly) { return; } if (ImportUI.ImportCountries()) { CountryList = ClientEnvironment.CountryService.FindAll(); } }
private void nb_NewStore_LinkClicked(object sender, NavBarLinkEventArgs e) { if (ImportUI.ImportStores()) { if (_storeList != null) { _storeList.ReloadData(); } else { Context.ListOfStoresView.LoadAll(); } } }
public void ImportEmployee() { if (ImportUI.ImportEmployees()) { bandedGridViewEmployees.BeginDataUpdate(); try { GenerateEmployeeList(); } finally { bandedGridViewEmployees.EndDataUpdate(); } } }
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> "); _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); }
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)); * } * } */ }
private void mennu_importEmployee_itemClick(object sender, ItemClickEventArgs e) { ImportUI.ImportEmployees(); }
private void menu_importWGR_ItemClick(object sender, ItemClickEventArgs e) { ImportUI.ImportWgrs(); }
private void menu_importWorld_itemClick(object sender, ItemClickEventArgs e) { ImportUI.ImportWorlds(); }
private void menu_importStore_itemClick(object sender, ItemClickEventArgs e) { ImportUI.ImportStores(); }
private void menu_importRegion_ItemClick(object sender, ItemClickEventArgs e) { ImportUI.ImportRegions(); }
private void menu_importcountry_itemClick(object sender, ItemClickEventArgs e) { ImportUI.ImportCountries(); }
private void nbi_ImportWgrs_LinkClicked(object sender, NavBarLinkEventArgs e) { ImportUI.ImportWgrs(); }
private void ImportWgrClick(object sender, NavBarLinkEventArgs e) { ImportUI.ImportWgrs(); m_context.Invalidate(); }
private void menu_importCash_ItemClick(object sender, ItemClickEventArgs e) { ImportUI.ImportCashRegisterReceipt(); }
private void menu_importBuissness_itemClick(object sender, ItemClickEventArgs e) { ImportUI.ImportBusinessVolume(); }
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(); } }