private void frmTaCalAnnualLeave_Load(object sender, System.EventArgs e) { Basic.Function.PublicFunction.L_Init_Label(this); control1.InitCB(this.Tag); control1.Initlabel(); this.Closed += new EventHandler(frmTaCalAnnualLeave_Closed); }
private void frmTaCardDataSwitch_Load(object sender, System.EventArgs e) { Basic.Function.PublicFunction.L_Init_Label(this); control1.InitCB(this.Tag); control1.Initlabel(); // dt3.Value=dt2.Value=dt1.Value=T_String.GetDate(); int day = T_String.IsNullTo0(PublicFunction.GetOption("DAYCLOSE") + ""); if (day <= 0) { day = 1; } dt1.Value = DateTime.Parse((day < 15 ? T_String.GetDate().ToString("yyyy/MM") : T_String.GetDate().AddMonths(-1).ToString("yyyy/MM")) + "/" + day); dt2.Value = ((DateTime)dt1.Value).AddMonths(1).AddDays(-1); dt3.Value = dt2.Value; dt1.CustomFormat = dt2.CustomFormat = PublicFunction.GetOption("DATE"); string sql = "Select FNAME," + PublicFunction.L_Lag + " from SYS_LABEL where [NAME]=N'frmTaMonthAddUpCal' and (FName='1' or FName='2')"; PublicFunction.InitCB(cb, sql, false); CheckFieldName(); this.Closed += new EventHandler(frmTaMonthAddUpCal_Closed); cmd_stop.Visible = false; cb.SelectedValue = 2; }
private void frmTaCalAnnualLeave_Load(object sender, System.EventArgs e) { Basic.Function.PublicFunction.L_Init_Label(this); control1.InitCB(this.Tag); control1.Initlabel(); this.Closed += new EventHandler(frmTaCalAnnualLeave_Closed); //label5.Text=label5.Text+"-"+dt.Year.ToString("0000"); }
private void frmTaHRReport_Load(object sender, System.EventArgs e) { //Basic.Function.PublicFunction.L_Init_Label(this); dt_dt1.CustomFormat = dt_dt2.CustomFormat = PublicFunction.GetOption("DATE"); control1.InitCB(this.Tag); control1.Initlabel(); rdatt.Checked = true; }
private void frmTaTAPrintOut_Load(object sender, System.EventArgs e) { control1.InitCB(this.Tag); control1.Initlabel(); Init_Form(); dt2.Value = dt1.Value = T_String.GetDate(); dt1.CustomFormat = dt2.CustomFormat = PublicFunction.GetOption("DATE"); PublicFunction.SQL_Execute("Delete from FILE07B where RPT_ID not in(select RPT_ID from FILE07A )"); }
private void Init_Form() { //dt.Value=T_String.GetDate(); Init_vs(); control1.InitCB(this.Tag); control1.Initlabel(); dt1.Value = dt2.Value = T_String.GetDate(); Basic.Function.PublicFunction.L_Init_Label(this); }
private void frmTaInitSalary_Load(object sender, System.EventArgs e) { Basic.Function.PublicFunction.L_Init_Label(this); control1.InitCB(this.Tag); control1.Initlabel(); DateTime dt = T_String.GetDate(); dt2.Value = dt; dt1.Value = dt; dt1.CustomFormat = dt2.CustomFormat = "yyyyMM"; }
private void frmTaInitATT_Load(object sender, System.EventArgs e) { Basic.Function.PublicFunction.L_Init_Label(this); control1.InitCB(this.Tag); control1.Initlabel(); DateTime dt = T_String.GetDate(); dt2.Value = dt; dt1.Value = dt.AddDays(-1); dt1.CustomFormat = dt2.CustomFormat = PublicFunction.GetOption("DATE"); }
private void frmTaMealCalculate_Load(object sender, System.EventArgs e) { Basic.Function.PublicFunction.L_Init_Label(this); control1.InitCB(this.Tag); control1.Initlabel(); DateTime dt = T_String.GetDate(); dt2.Value = dt; dt1.Value = dt; dt1.CustomFormat = dt2.CustomFormat = PublicFunction.GetOption("DATE"); this.Closed += new EventHandler(frmTaMealCalculate_Closed); }
private void frmTaHRReport_Load(object sender, System.EventArgs e) { PublicFunction.InitNav(this, vs, nav); vs.EnabledChanged += new EventHandler(vs_EnabledChanged); Basic.Function.PublicFunction.L_Init_Label(this); nav.Show_VS("[NAME]=N'MAN_" + PublicFunction.CUS_ID + "' or [NAME]=N'MAN_0'"); dt_dt1.CustomFormat = dt_dt2.CustomFormat = PublicFunction.GetOption("DATE"); control1.InitCB(this.Tag); control1.Initlabel(); vs.AfterRowColChange += new C1.Win.C1FlexGrid.RangeEventHandler(vs_AfterRowColChange); Show_con(); }
private void frmTaCalAnnualLeave_Load(object sender, System.EventArgs e) { Basic.Function.PublicFunction.L_Init_Label(this); control1.InitCB(this.Tag); control1.Initlabel(); this.Closed += new EventHandler(frmTaCalAnnualLeave_Closed); //label5.Text=label5.Text+"-"+dt.Year.ToString("0000"); //DateTime dt=T_String.GetDate(); dtpfrom.Value = dt; dtpto.Value = dt; dtpfrom.CustomFormat = dtpto.CustomFormat = "yyyyMM"; }
private void frmTaCardDataSwitch_Load(object sender, System.EventArgs e) { Basic.Function.PublicFunction.L_Init_Label(this); control1.InitCB(this.Tag); control1.Initlabel(); //dt3.Value=dt2.Value=dt1.Value=T_String.GetDate(); dt3.Value = dt1.Value = T_String.GetDate().ToString("yyyy/MM") + "/01"; DateTime ngay = (DateTime)dt1.Value; dt2.Value = ngay.AddMonths(1).ToString("yyyy/MM") + "/01"; dt2.Value = DateTime.Parse(dt2.Value.ToString()).AddDays(-1); dt1.CustomFormat = dt2.CustomFormat = PublicFunction.GetOption("DATE"); }
private void frmTaCardDataSwitch_Load(object sender, System.EventArgs e) { Basic.Function.PublicFunction.L_Init_Label(this); control1.InitCB(this.Tag); control1.Initlabel(); dt3.Value = T_String.GetDate(); string sql = "Select [ID] as SEQ_NO," + PublicFunction.L_Lag + " from SYS_LABEL where [NAME]=N'frmTaNotesSlip_Type'"; PublicFunction.InitCB(cb, sql, false); sql = "Select COL_NM,COL_" + PublicFunction.L_Lag + " from FILD01A "; PublicFunction.InitCB(cb1, sql, false); }
private void frmTaCardDataSwitch_Load(object sender, System.EventArgs e) { Basic.Function.PublicFunction.L_Init_Label(this); control1.InitCB(this.Tag); control1.Initlabel(); dt3.Value = dt2.Value = dt1.Value = T_String.GetDate(); dt1.CustomFormat = dt2.CustomFormat = PublicFunction.GetOption("DATE"); string sql = "Select FNAME," + PublicFunction.L_Lag + " from SYS_LABEL where [NAME]=N'frmTaSubsidyCal' and (FName='1' or FName='2')"; //PublicFunction.InitCB(cb,sql,false); chkUpdateSalary.Checked = true; this.Closed += new EventHandler(frmTaSubsidyCal_Closed); cmd_stop.Visible = false; }
private void frmTaCardDataSwitch_Load(object sender, System.EventArgs e) { if (PublicFunction.A_UserID == "admin") { btnTinhPC.Visible = true; } //tao bang HistoryOfFILA06A Func.RecordSet rsk = new Func.RecordSet("select * from dbo.sysobjects where id = object_id('HistoryOfFILA06A')", PublicFunction.C_con); if (rsk.rows <= 0) { string sk = "CREATE TABLE HistoryOfFILA06A (SEQ_NO int,STR_DT datetime,END_DT datetime,[USER] nvarchar(100),[WHERE] nvarchar(4000),RESULT nvarchar(4000))"; PublicFunction.SQL_Execute(sk, PublicFunction.C_con); } if (!PublicFunction.GPS) { string dt60 = PublicFunction.GetOption("DT6000"); if (dt60 + "" == "1") { if (PublicFunction.AccessLevel(36, 3)) { frmTaGetDataFrDT TaGetDataFrDT = new frmTaGetDataFrDT(); TaGetDataFrDT.Tag = this.Tag; TaGetDataFrDT.ShowDialog(); } } else { string chuyenschema = PublicFunction.GetOption("SCHEMA"); if (chuyenschema + "" == "1") { frmTaTransferFromTXTSC dlg = new frmTaTransferFromTXTSC(); dlg.ShowDialog(); if ((PublicFunction.A_UserID.ToUpper() == "ADMIN" || PublicFunction.A_UserID.ToUpper() == "VINHTUYEN")) { err.Visible = true; } else { err.Visible = false; } } else { frmTaTransferFromTXT dlg = new frmTaTransferFromTXT(); dlg.ShowDialog(); if ((PublicFunction.A_UserID.ToUpper() == "ADMIN" || PublicFunction.A_UserID.ToUpper() == "VINHTUYEN")) { err.Visible = true; } else { err.Visible = false; } } } } else { pro2.Visible = false; pro4.Visible = false; } Basic.Function.PublicFunction.L_Init_Label(this); control1.InitCB(this.Tag); control1.Initlabel(); DateTime dt = T_String.GetDate(); dt2.Value = dt; dt1.Value = dt.AddDays(-1); dt1.CustomFormat = dt2.CustomFormat = PublicFunction.GetOption("DATE"); this.Closed += new EventHandler(frmTaCardDataSwitch_Closed); }
private void frmTaPrintWID_Load(object sender, System.EventArgs e) { condition1.InitCB(this.Tag); condition1.Initlabel(); Basic.Function.PublicFunction.L_Init_Label(this); }