/// <summary> /// Lấy dữ liệ của RefDetails /// </summary> /// <param name="id"></param> /// <returns></returns> public IEnumerable <RefDetail> GetDataRefDetail(object[] id) { RefDetailDAL refDetailDAL = new RefDetailDAL(); BaseBL <RefDetail> baseBL = new BaseBL <RefDetail>(); return(refDetailDAL.GetEntities("Proc_GetRefDetailsStockByRefId", id)); }
public HaitaSakujo() { InitializeComponent(); bll = new BaseBL(); cf = new CommonFunction(); gvHaitaSakujo.SetReadOnlyColumn("col_DataPartition,col_DataPartitionName,col_ExTargetNo,col_ProcessTime,col_InputPeronName,col_ProcessProgram,col_Terminal"); }
public ShinyohLogin(bool IsMainCall = false) { var f = @"C:\DBConfig\DBConfig.ini"; var d = Path.GetDirectoryName(f); if (!IsMainCall) { if (CheckExistFormRunning()) { System.Environment.Exit(0); } } this.KeyPreview = true; InitializeComponent(); programEntity = new ProgramEntity(); bbl = new BaseBL(); ff = new FileFunction(); staffBL = new StaffBL(); if (ApplicationDeployment.IsNetworkDeployed) { lblVer.Text = ApplicationDeployment.CurrentDeployment.CurrentVersion.ToString(4); } else { ckM_Button3.Visible = false; } BaseBL.IEntity.Version = lblVer.Text; }
public MasterTouroku_MultiPorpose() { InitializeComponent(); cf = new CommonFunction(); bbl = new BaseBL(); mbl = new multipurposeBL(); }
private void Modified_Panel() { cf.Clear(PanelDetail); rdoAggregation.Focus(); UI_ErrorCheck(); lblBrandName.Text = string.Empty; lblTokuisakiName.Text = string.Empty; lblSoukoName.Text = string.Empty; lblKouritenName.Text = string.Empty; initScr(); F8_dt1 = createMemoryTable(1); dtMain = new DataTable(); gvAggregationDetails.Memory_Row_Count = 0; gvMainDetail.Memory_Row_Count = 0; gvFreeInventoryDetails.Memory_Row_Count = 0; BaseEntity be = new BaseEntity(); be.ProgramID = ProgramID; be.OperatorCD = OperatorCD; be.PC = PCID; BaseBL bbl = new BaseBL(); bbl.D_Exclusive_Number_Remove(be); }
//Constructor public SCombo() { this.Font = new System.Drawing.Font("MS Gothic", 9F, System.Drawing.FontStyle.Regular); cf = new CommonFunction(); bbl = new BaseBL(); errchk = new ErrorCheck(); base.MinimumSize = new Size(100, 19); }
public JuchuuTorikomi() { InitializeComponent(); cf = new CommonFunction(); bbl = new BaseBL(); JBL = new JuchuuTorikomiBL(); JEntity = new JuchuuTorikomiEntity(); dtMain = new DataTable(); }
public List <ResponseVuelos> BusquedaListaVuelos(RequestVuelos oRequestVuelos) { List <ResponseVuelos> oResponseVuelos = new List <ResponseVuelos>(); BaseBL oBaseBL = new BaseBL(); oBaseBL.Base(); oResponseVuelos = oBaseBL.BusquedaListaVuelos(oRequestVuelos); return(oResponseVuelos); }
public ShukkaSiziDataShuturyoku() { InitializeComponent(); baseEntity = _GetBaseData(); cf = new CommonFunction(); bbl = new BaseBL(); shukkaBL = new ShukkaSiziDataShuturyokuBL(); obj_Export = new ExportCSVExcel(); }
//Constructor public STextBox() { this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.Font = new System.Drawing.Font("MS Gothic", 9F, System.Drawing.FontStyle.Regular); cf = new CommonFunction(); bbl = new BaseBL(); errchk = new ErrorCheck(); base.MinimumSize = new Size(100, 19); }
public IdouNyuuryoku() { InitializeComponent(); cf = new CommonFunction(); multi_Entity = new multipurposeEntity(); base_Entity = new BaseEntity(); base_bl = new BaseBL(); Idou_BL = new IdouNyuuryokuBL(); gv1_to_dt1 = new DataTable(); F8_dt1 = new DataTable(); }
public SqlDbType() { InitializeComponent(); cf = new CommonFunction(); multi_Entity = new multipurposeEntity(); dt_Main = new DataTable(); create_dt = new DataTable(); dt = new DataTable(); bbl = new BaseBL(); SEntity = new TorikomiEntity(); ShukkaTorikomi_BL = new ShukkaTorikomi_BL(); }
public void TestMethod1() { RequestVuelos oRequestVuelos = new RequestVuelos { Precio = 120, Equipaje = true, CantidadEscalas = 1 }; List <ResponseVuelos> Resultado = new List <ResponseVuelos>(); List <ResponseVuelos> ResultadoEsperado = new List <ResponseVuelos>(); ResultadoEsperado.Add(new ResponseVuelos { Equipaje = "SI", Escalas = "Escala", FechaRetorno = Convert.ToDateTime("2019-04-10"), FechaSalida = Convert.ToDateTime("2019-02-10"), PaisDestino = "Colombia", PaisOrigen = "Chile", Precio = 120 }); BaseBL oBaseBL = new BaseBL(); oBaseBL.Base(); Resultado = oBaseBL.BusquedaListaVuelos(oRequestVuelos); Assert.AreEqual(ResultadoEsperado.Count, Resultado.Count); }
public void ShinyohMenu_FormClosing(object sender, FormClosingEventArgs e) { BaseBL bbl = new BaseBL(); if (CheckOpenForm()) { if (bbl.ShowMessage("Q003") == DialogResult.Yes) { ForceToCLose(); e.Cancel = false; } else { e.Cancel = true; } } }
public Result GetLast() { var result = new Result(); try { var baseBL = new BaseBL <Ref>(); result.Data = baseBL.GetLastID("[dbo].[Proc_GetNewCode]", "Ref", "RefNo", "NK"); result.Success = true; } catch (Exception) { result.Success = false; throw; } return(result); }
public async Task <Result> Get(PagingParameter pagingParameter) { var result = new Result(); try { var baseBL = new BaseBL <Ref>(); result = await baseBL.GetEntitiesPaging(pagingParameter); result.Success = true; } catch (Exception ex) { result.Success = false; } return(result); }
private bool ErrorCheck() { BaseBL bbl = new BaseBL(); if (string.IsNullOrWhiteSpace(txtOperatorCD.Text)) { bbl.ShowMessage("E101"); txtOperatorCD.Focus(); return(false); } if (string.IsNullOrWhiteSpace(txtPassword.Text)) { bbl.ShowMessage("E101"); txtPassword.Focus(); return(false); } OperatorCD = txtOperatorCD.Text.Trim(); return(true); }
public AjaxResult GetBorrowingBookReader(Guid BookReaderID) { BaseBL <BorrowingBookReader> _baseBL; var _result = new AjaxResult(); Dictionary <string, object> dict = new Dictionary <string, object>(); try { dict["BookReaderID"] = BookReaderID; _baseBL = new BaseBL <BorrowingBookReader>(); IEnumerable <BorrowingBookReader> listBorrowingBookReaders; listBorrowingBookReaders = _baseBL.BLGetDataBySpecificParameters("[dbo].[Proc_Get_BorrowingBookReader]", dict); _result.Data = listBorrowingBookReaders; _result.Message = "Geting Data is Successful"; _result.Success = true; } catch (Exception ex) { _result.Success = false; _result.Message = "Geting Data fail"; } return(_result); }
public override void FunctionProcess(string tagID) { if (tagID == "6") { //Clear(); rdo_Toroku.Checked = true; rdo_Toroku.Focus(); Control btnF10 = this.TopLevelControl.Controls.Find("BtnF10", true)[0]; btnF10.Visible = false; dataBind(); gvShukkaTorikomi.ClearSelection(); dt.Clear(); } if (tagID == "10") { gvShukkaTorikomi.ActionType = "F10"; if (rdo_Sakujo.Checked) { txtDenpyouNO.E102Check(false); txtDenpyouNO.E165Check(false, "ShukkaTorikom", txtDenpyouNO, null); } if (ErrorCheck(PanelDetail)) { DataGridviewBind(); } gvShukkaTorikomi.ActionType = string.Empty; } //base.FunctionProcess(tagID); if (tagID == "12") { //HET (string, string)Xml = (string.Empty, string.Empty); gvShukkaTorikomi.ActionType = "F10"; if (rdo_Sakujo.Checked) { txtDenpyouNO.E102Check(true); txtDenpyouNO.E165Check(true, "ShukkaTorikom", txtDenpyouNO, null); } if (ErrorCheck(PanelDetail)) //HET { if (rdo_Toroku.Checked) { Xml = ChooseFile(); } else { Xml = ChooseFileDelete(); } BaseBL bbl = new BaseBL(); if (!string.IsNullOrEmpty(Xml.Item1) && !string.IsNullOrEmpty(Xml.Item2)) { DataTable return_DT = new DataTable(); ShukkaTorikomi_BL bl = new ShukkaTorikomi_BL(); string spname = string.Empty; string TorikomiDenpyouNO = txtDenpyouNO.Text; if (rdo_Toroku.Checked) { return_DT = bl.ShukkaTorikomi_CUD("ShukkaTorikomi_Insert", Xml.Item1, Xml.Item2, "ErrorCheck"); if (return_DT.Rows.Count > 0) { if (return_DT.Rows[0]["Result"].ToString().Equals("1")) { if (bbl.ShowMessage("Q206") == DialogResult.Yes) { return_DT = bl.ShukkaTorikomi_CUD("ShukkaTorikomi_Insert", Xml.Item1, Xml.Item2, TorikomiDenpyouNO); if (return_DT.Rows.Count > 0) { if (return_DT.Rows[0]["Result"].ToString().Equals("1")) { bbl.ShowMessage("I002"); } rdo_Toroku.Checked = true; rdo_Toroku.Focus(); } } else { if (PreviousCtrl != null) { PreviousCtrl.Focus(); } } } else { bbl.ShowMessage("E276", return_DT.Rows[0]["SEQ"].ToString(), return_DT.Rows[0]["Error1"].ToString(), return_DT.Rows[0]["Error2"].ToString()); } } } else { return_DT = bl.ShukkaTorikomi_CUD("NewShukkaTorikomi_Delete", Xml.Item1, Xml.Item2, TorikomiDenpyouNO); if (return_DT.Rows.Count > 0) { if (return_DT.Rows[0]["Result"].ToString().Equals("1")) { if (bbl.ShowMessage("Q102") == DialogResult.Yes) { return_DT = bl.ShukkaTorikomi_CUD("NewShukkaTorikomi_Delete", Xml.Item1, Xml.Item2, TorikomiDenpyouNO); bbl.ShowMessage("I002"); rdo_Sakujo.Checked = true; txtDate1.Clear(); txtDate2.Clear(); txtDenpyouNO.Clear(); txtDenpyouNO.Focus(); DataGridviewBind(); } } else { bbl.ShowMessage("S013"); txtDenpyouNO.Focus(); } } else { if (PreviousCtrl != null) { PreviousCtrl.Focus(); } } } } } } }
public BaseController() { this.baseBL = new BaseBL(); }
public MasterTouroku_Tokuisaki() { InitializeComponent(); cf = new CommonFunction(); bbl = new BaseBL(); }
public override void FunctionProcess(string tagID) { if (tagID == "2") { ChangeMode(Mode.New); } if (tagID == "3") { ChangeMode(Mode.Update); } if (tagID == "4") { ChangeMode(Mode.Delete); } if (tagID == "5") { ChangeMode(Mode.Inquiry); } if (tagID == "6") { Mode_Setting(); } if (tagID == "10") { string Xml = ChooseFile(); BaseBL bbl = new BaseBL(); if (!string.IsNullOrEmpty(Xml)) { TokuisakiBL bl = new TokuisakiBL(); string chk_val = string.Empty; if (sRadRegister.Checked) { chk_val = "create_Err_Check"; } else { chk_val = "delete_Err_Check"; } DataTable dt = bl.CSV_M_Tokuisaki_CUD(Xml, chk_val); if (dt.Rows.Count > 0) { if (dt.Rows[0]["Result"].ToString().Equals("1")) { if (bbl.ShowMessage("Q206") != DialogResult.Yes) { if (PreviousCtrl != null) { PreviousCtrl.Focus(); } } else { if (sRadRegister.Checked) { chk_val = "create_update"; } else { chk_val = "delete"; } dt = bl.CSV_M_Tokuisaki_CUD(Xml, chk_val); if (dt.Rows.Count > 0) { if (dt.Rows[0]["Result"].ToString().Equals("1")) { bbl.ShowMessage("I002"); sRadRegister.Checked = true; sRadDelete.Checked = false; } } } } else { bbl.ShowMessage("E276", dt.Rows[0]["SEQ"].ToString(), dt.Rows[0]["Error1"].ToString(), dt.Rows[0]["Error2"].ToString()); } } } } if (tagID == "12") { // if (ErrorCheck(PanelTitle) && ErrorCheck(PanelDetail)) // { DBProcess(); switch (cboMode.SelectedValue) { case "1": ChangeMode(Mode.New); break; case "2": ChangeMode(Mode.Update); break; case "3": ChangeMode(Mode.Delete); break; case "4": ChangeMode(Mode.Inquiry); break; // } } } base.FunctionProcess(tagID); }
public ShukkaSiziNyuuryoku() { InitializeComponent(); cf = new CommonFunction(); bbl = new BaseBL(); }