/// <summary> /// Listeaza suspendarile contractului individual de munca /// </summary> private void LoadIstoricSuspendariCIM() { try { listTable.Rows.Clear(); listTable.Attributes.Add("width", "100%"); listTable.Style.Add("border", "1px solid #20b2aa"); listTable.Attributes.Add("cellpadding", "0"); listTable.Attributes.Add("cellspacing", "1"); IntervaleIntreruperiAngajat istSuspCIM = new IntervaleIntreruperiAngajat(AngajatID); string[] arHeader = { "Data de inceput", "Data de sfarsit", "Observatii" }; string[] arCols = { "DataStart", "DataEnd", "Descriere" }; SiemensHR.Classes.ListTable objListTable = new SiemensHR.Classes.ListTable(listTable, istSuspCIM.LoadIntreruperiCIM(), arHeader, arCols); objListTable.textForEmptyDataSet = "Nu exista nici o intrerupere a contractului individual de munca asociata acestui angajat!"; string[] ar_OnClickParam = { AngajatID.ToString(), "AngajatIntrerupereID", "DataStart", "DataEnd", "Descriere" }; string[] ar_OnClickParamType = { "const", "dataset", "dataset", "dataset", "dataset" }; objListTable.OnclickParams = ar_OnClickParam; objListTable.OnclickParamsType = ar_OnClickParamType; objListTable.OnclickJSMethod = "SelectSuspendareCIM"; objListTable.DrawListTableWithoutDigits(); } catch (Exception ex) { litError.Text = "The following error occurred: <br>"; litError.Text += ex.Message; } }
/// <summary> /// Listeaza retinerile unui angajat /// </summary> private void LoadRetineriAngajat() { try { listTable.Rows.Clear(); listTable.Attributes.Add("width", "100%"); listTable.Style.Add("border", "1px solid #20b2aa"); listTable.Attributes.Add("cellpadding", "0"); listTable.Attributes.Add("cellspacing", "1"); Salaries.Business.RetineriRecurenteAngajat retineriBL = new Salaries.Business.RetineriRecurenteAngajat(); retineriBL.RetAng.AngajatID = AngajatID; string[] arHeader = { "Tip retinere", "Denumire", "Data de inceput", "Data de sfarsit", "Valoare", "Alerta" }; string[] arCols = { "TipRetinere", "DenumireRetinere", "DataInceput", "DataSfarsit", "Valoare", "Alerta" }; SiemensHR.Classes.ListTable objListTable = new SiemensHR.Classes.ListTable(listTable, retineriBL.LoadRetineriAngajat(), arHeader, arCols); objListTable.textForEmptyDataSet = "Nu exista nici o retinere asociata acestui angajat!"; //string[] ar_OnClickParam = { AngajatID.ToString(), "IdRetinere", "AngajatID", "DataInceput", "DataSfarsit", "Valoare", "Alerta"}; //string[] ar_OnClickParamType = { "const", "dataset", "dataset", "dataset", "dataset"}; string[] ar_OnClickParam = { "IdRetinere", "AngajatID", "TipRetinere", "DenumireRetinere", "DataInceput", "DataSfarsit", "Valoare", "Alerta" }; string[] ar_OnClickParamType = { "dataset", "dataset", "dataset", "dataset", "dataset", "dataset", "dataset", "dataset" }; objListTable.OnclickParams = ar_OnClickParam; objListTable.OnclickParamsType = ar_OnClickParamType; objListTable.OnclickJSMethod = "SelectSuspendareCIM"; objListTable.DrawListTableWithoutDigits(); } catch (Exception ex) { litError.Text = "The following error occurred: <br>"; litError.Text += ex.Message; } }