20261125-3620 Need a Salary Certificate as Per Agreement
This commit is contained in:
parent
591ccd4b43
commit
708151d9c7
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -749,3 +749,4 @@ FodyWeavers.xsd
|
|||
# Additional files built by Visual Studio
|
||||
|
||||
# End of https://www.toptal.com/developers/gitignore/api/csharp,angular,aspnetcore,visualstudio,visualstudiocode
|
||||
/Scripts
|
||||
|
|
|
|||
|
|
@ -1295,6 +1295,7 @@ namespace Payroll.BO
|
|||
StuffAccountWithoutSalary = 507,
|
||||
SalaryComparisonNew = 508,
|
||||
AuditReport = 509,
|
||||
SalaryCertificateLastAgreement = 510,
|
||||
BankForwording = 400,
|
||||
//PF
|
||||
PFLedger = 61,
|
||||
|
|
|
|||
|
|
@ -256,7 +256,7 @@ namespace Payroll.Report
|
|||
m_nYpos = m_nYpos + nLineHeight;
|
||||
nLineHeight = 0;
|
||||
|
||||
oCaption = m_oDoc.CreateText("Employee ID:", m_nColWidth[1]);
|
||||
oCaption = m_oDoc.CreateText("Employee ID:", m_nColWidth[1] + 1);
|
||||
oCaption.HAlignment = EPHAlignConstants.EPHAlignLeft;
|
||||
if (oCaption.Height > nLineHeight) nLineHeight = oCaption.Height;
|
||||
m_oDoc.CurrentPage.AddText(oCaption, m_nXpos[0], m_nYpos);
|
||||
|
|
@ -535,7 +535,7 @@ namespace Payroll.Report
|
|||
m_nYpos = m_nYpos + nLineHeight;
|
||||
nLineHeight = 0;
|
||||
|
||||
oCaption = m_oDoc.CreateText("Employee ID:", m_nColWidth[1]);
|
||||
oCaption = m_oDoc.CreateText("Employee ID:", m_nColWidth[1] + 1);
|
||||
oCaption.Style.Font.Size = 8;
|
||||
oCaption.HAlignment = EPHAlignConstants.EPHAlignLeft;
|
||||
if (oCaption.Height > nLineHeight) nLineHeight = oCaption.Height;
|
||||
|
|
|
|||
|
|
@ -5154,6 +5154,148 @@ namespace Payroll.Report
|
|||
form.ShowDlgForSalaryCertificate(_selectedParameter.ReportItem, dtTempSalarySheet, _SalaryMonth, toDate);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Salary Certificate as per the last salary agreement (employee life cycle) effective in the selected month.
|
||||
/// Basic comes from the grade salary assignment in force at the month end; every grade-defined allowance
|
||||
/// applicable to that grade is calculated from the allowance parameter, the same way the salary process does it.
|
||||
/// </summary>
|
||||
public void SalaryCertificateLastAgreement()
|
||||
{
|
||||
if (_selectedParameter.FromDate == null)
|
||||
throw new ServiceException("Please select the month.");
|
||||
|
||||
string sEmpID = _selectedParameter.ReportItem.INSQL;
|
||||
if (string.IsNullOrEmpty(sEmpID))
|
||||
throw new ServiceException("Please select at least one employee.");
|
||||
|
||||
DateTime salaryMonth = GlobalFunctions.LastDateOfMonth(_selectedParameter.FromDate.Value);
|
||||
|
||||
DataTable dtCertificate = new DataTable("SalaryCertificateLastAgreement");
|
||||
dtCertificate.Columns.Add("EmployeeID", typeof(int));
|
||||
dtCertificate.Columns.Add("EmpNo", typeof(string));
|
||||
dtCertificate.Columns.Add("EmpName", typeof(string));
|
||||
dtCertificate.Columns.Add("Salutation", typeof(string));
|
||||
dtCertificate.Columns.Add("HisHer", typeof(string));
|
||||
dtCertificate.Columns.Add("Designation", typeof(string));
|
||||
dtCertificate.Columns.Add("Department", typeof(string));
|
||||
dtCertificate.Columns.Add("Grade", typeof(string));
|
||||
dtCertificate.Columns.Add("JoiningDate", typeof(string));
|
||||
dtCertificate.Columns.Add("EffectDate", typeof(string));
|
||||
dtCertificate.Columns.Add("SLNo", typeof(int));
|
||||
dtCertificate.Columns.Add("ItemName", typeof(string));
|
||||
dtCertificate.Columns.Add("Amount", typeof(double));
|
||||
dtCertificate.Columns.Add("TakaInWords", typeof(string));
|
||||
dtCertificate.Columns.Add("HeShe", typeof(string));
|
||||
dtCertificate.Columns.Add("HisHerCap", typeof(string));
|
||||
dtCertificate.Columns.Add("NID", typeof(string));
|
||||
dtCertificate.Columns.Add("Article", typeof(string));
|
||||
|
||||
ObjectsTemplate<Employee> employees = Employee.GetByEmpIDs(sEmpID);
|
||||
ObjectsTemplate<HREmployee> hrEmployees = HREmployee.GetByIds(sEmpID);
|
||||
ObjectsTemplate<ADParameter> allParameters = ADParameter.Get(EnumStatus.Active);
|
||||
StringBuilder skipped = new StringBuilder();
|
||||
|
||||
foreach (Employee emp in employees.OrderBy(x => x.EmployeeNo))
|
||||
{
|
||||
EmployeeGradeSalary gradeSalary = EmployeeGradeSalary.Get(emp.ID, salaryMonth, EnumArrearType.NotPresent);
|
||||
if (gradeSalary == null)
|
||||
{
|
||||
skipped.AppendLine(emp.EmployeeNo + " - " + emp.Name);
|
||||
continue;
|
||||
}
|
||||
// full month value as per agreement, not prorated
|
||||
gradeSalary.FractionofFromTo = 1;
|
||||
|
||||
// item name, amount, position
|
||||
List<Tuple<string, double, int>> items = new List<Tuple<string, double, int>>();
|
||||
items.Add(new Tuple<string, double, int>("Basic Salary", GlobalFunctions.Round(gradeSalary.BasicSalary), -1));
|
||||
|
||||
if (allParameters != null)
|
||||
{
|
||||
List<ADParameter> applicable = ADParameter.GetApplicableParameters(emp, gradeSalary.GradeID, allParameters);
|
||||
foreach (ADParameter parameter in applicable)
|
||||
{
|
||||
if (parameter.EntitleType != EnumEntitleType.Grade) continue;
|
||||
if (parameter.AllowOrDeductType != EnumAllowOrDeduct.Allowance) continue;
|
||||
if (parameter.AllowanceDeduction == null) continue;
|
||||
|
||||
double amount = GlobalFunctions.Round(parameter.GetGradeDefinedAmount(emp,
|
||||
gradeSalary.BasicSalary, gradeSalary.GrossSalary, gradeSalary));
|
||||
if (amount == 0) continue;
|
||||
|
||||
int index = items.FindIndex(x => x.Item1 == parameter.AllowanceDeduction.Name);
|
||||
if (index >= 0)
|
||||
items[index] = new Tuple<string, double, int>(items[index].Item1, items[index].Item2 + amount, items[index].Item3);
|
||||
else
|
||||
items.Add(new Tuple<string, double, int>(parameter.AllowanceDeduction.Name, amount, parameter.AllowanceDeduction.Sequence));
|
||||
}
|
||||
}
|
||||
|
||||
double total = items.Sum(x => x.Item2);
|
||||
string takaInWords = Ease.CoreV35.Utility.Global.NumericFunctions.TakaWords(total);
|
||||
|
||||
Grade grade = Grade.Get(gradeSalary.GradeID);
|
||||
bool isFemale = emp.Gender == EnumGender.Female;
|
||||
string designation = emp.Designation != null ? emp.Designation.Name : string.Empty;
|
||||
string department = emp.Department != null ? emp.Department.Name : string.Empty;
|
||||
HREmployee hrEmp = hrEmployees == null ? null : hrEmployees.Find(x => x.ID.Integer == emp.ID.Integer);
|
||||
string nid = hrEmp != null && hrEmp.NationalID != null ? hrEmp.NationalID.Trim() : string.Empty;
|
||||
string article = designation.Length > 0 && "AEIOUaeiou".IndexOf(designation[0]) >= 0 ? "an" : "a";
|
||||
// e.g. "1st December, 2023"
|
||||
Func<DateTime, string> ordinalDate = d =>
|
||||
{
|
||||
int day = d.Day;
|
||||
string suffix = (day % 100 >= 11 && day % 100 <= 13) ? "th"
|
||||
: day % 10 == 1 ? "st" : day % 10 == 2 ? "nd" : day % 10 == 3 ? "rd" : "th";
|
||||
return day + suffix + " " + d.ToString("MMMM, yyyy");
|
||||
};
|
||||
string joiningDate = ordinalDate(emp.JoiningDate);
|
||||
|
||||
int sl = 1;
|
||||
foreach (Tuple<string, double, int> item in items.OrderBy(x => x.Item3))
|
||||
{
|
||||
DataRow row = dtCertificate.NewRow();
|
||||
row["EmployeeID"] = emp.ID.Integer;
|
||||
row["EmpNo"] = emp.EmployeeNo;
|
||||
row["EmpName"] = emp.Name;
|
||||
row["Salutation"] = isFemale ? "Ms." : "Mr.";
|
||||
row["HisHer"] = isFemale ? "her" : "his";
|
||||
row["Designation"] = designation;
|
||||
row["Department"] = department;
|
||||
row["Grade"] = grade != null ? grade.Name : string.Empty;
|
||||
row["JoiningDate"] = joiningDate;
|
||||
row["HeShe"] = isFemale ? "She" : "He";
|
||||
row["HisHerCap"] = isFemale ? "Her" : "His";
|
||||
row["NID"] = nid;
|
||||
row["Article"] = article;
|
||||
row["EffectDate"] = ordinalDate(gradeSalary.EffectDate);
|
||||
row["SLNo"] = sl++;
|
||||
row["ItemName"] = item.Item1;
|
||||
row["Amount"] = item.Item2;
|
||||
row["TakaInWords"] = takaInWords;
|
||||
dtCertificate.Rows.Add(row);
|
||||
}
|
||||
}
|
||||
|
||||
if (dtCertificate.Rows.Count == 0)
|
||||
throw new ServiceException("No salary agreement (grade salary) found on or before "
|
||||
+ salaryMonth.ToString("MMMM yyyy") + " for the selected employee(s).");
|
||||
|
||||
if (skipped.Length > 0)
|
||||
System.Windows.Forms.MessageBox.Show("No salary agreement found on or before " + salaryMonth.ToString("MMMM yyyy")
|
||||
+ " for the following employee(s); they are left out:" + Environment.NewLine + skipped.ToString(),
|
||||
"Salary Certificate", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Information);
|
||||
|
||||
DataSet ds = new DataSet();
|
||||
ds.Tables.Add(dtCertificate);
|
||||
|
||||
List<Microsoft.Reporting.WinForms.ReportParameter> parameters = new List<Microsoft.Reporting.WinForms.ReportParameter>();
|
||||
parameters.Add(new Microsoft.Reporting.WinForms.ReportParameter("SalaryMonth", salaryMonth.ToString("MMMM yyyy")));
|
||||
|
||||
fReportViewer form = new fReportViewer();
|
||||
form.CommonReportView(_selectedParameter.ReportItem, ds, "Payroll.Report.RDLC.SalaryCertificateLastAgreement.rdlc", parameters);
|
||||
}
|
||||
|
||||
internal void PrepareSalarySummaryReport(DateTime dateTime, int deptId)
|
||||
{
|
||||
fReportViewer oviewer = new fReportViewer();
|
||||
|
|
|
|||
|
|
@ -532,6 +532,7 @@
|
|||
<EmbeddedResource Include="RDLC\rUserRole.rdlc" />
|
||||
<EmbeddedResource Include="RDLC\rUsers.rdlc" />
|
||||
<EmbeddedResource Include="RDLC\SalaryCertificate.rdlc" />
|
||||
<EmbeddedResource Include="RDLC\SalaryCertificateLastAgreement.rdlc" />
|
||||
<EmbeddedResource Include="RDLC\SalaryReconciliation.rdlc" />
|
||||
<EmbeddedResource Include="RDLC\SalaryReconciliationForAllItems.rdlc" />
|
||||
<EmbeddedResource Include="RDLC\SalaryReconciliationSummary.rdlc" />
|
||||
|
|
|
|||
751
Payroll.Report/RDLC/SalaryCertificateLastAgreement.rdlc
Normal file
751
Payroll.Report/RDLC/SalaryCertificateLastAgreement.rdlc
Normal file
|
|
@ -0,0 +1,751 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
|
||||
<Body>
|
||||
<ReportItems>
|
||||
<Tablix Name="lstEmployee">
|
||||
<TablixBody>
|
||||
<TablixColumns>
|
||||
<TablixColumn>
|
||||
<Width>6.5in</Width>
|
||||
</TablixColumn>
|
||||
</TablixColumns>
|
||||
<TablixRows>
|
||||
<TablixRow>
|
||||
<Height>4.9in</Height>
|
||||
<TablixCells>
|
||||
<TablixCell>
|
||||
<CellContents>
|
||||
<Rectangle Name="rectLetter">
|
||||
<ReportItems>
|
||||
<Textbox Name="txtDate">
|
||||
<CanGrow>true</CanGrow>
|
||||
<KeepTogether>true</KeepTogether>
|
||||
<Paragraphs>
|
||||
<Paragraph>
|
||||
<TextRuns>
|
||||
<TextRun>
|
||||
<Value>="Date: " & Format(Today(), "dd MMMM yyyy")</Value>
|
||||
<Style />
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style />
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<Height>0.25in</Height>
|
||||
<Width>3in</Width>
|
||||
<Style>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
</Textbox>
|
||||
<Textbox Name="txtTitle">
|
||||
<CanGrow>true</CanGrow>
|
||||
<KeepTogether>true</KeepTogether>
|
||||
<Paragraphs>
|
||||
<Paragraph>
|
||||
<TextRuns>
|
||||
<TextRun>
|
||||
<Value>SALARY CERTIFICATE</Value>
|
||||
<Style>
|
||||
<FontSize>14pt</FontSize>
|
||||
<FontWeight>Bold</FontWeight>
|
||||
<TextDecoration>Underline</TextDecoration>
|
||||
</Style>
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style>
|
||||
<TextAlign>Center</TextAlign>
|
||||
</Style>
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<Top>0.45in</Top>
|
||||
<Height>0.35in</Height>
|
||||
<Width>6.5in</Width>
|
||||
<ZIndex>1</ZIndex>
|
||||
<Style>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
</Textbox>
|
||||
<Textbox Name="txtConcern">
|
||||
<CanGrow>true</CanGrow>
|
||||
<KeepTogether>true</KeepTogether>
|
||||
<Paragraphs>
|
||||
<Paragraph>
|
||||
<TextRuns>
|
||||
<TextRun>
|
||||
<Value>TO WHOM IT MAY CONCERN</Value>
|
||||
<Style>
|
||||
<FontWeight>Bold</FontWeight>
|
||||
</Style>
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style>
|
||||
<TextAlign>Center</TextAlign>
|
||||
</Style>
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<Top>0.85in</Top>
|
||||
<Height>0.25in</Height>
|
||||
<Width>6.5in</Width>
|
||||
<ZIndex>2</ZIndex>
|
||||
<Style>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
</Textbox>
|
||||
<Textbox Name="txtBody">
|
||||
<CanGrow>true</CanGrow>
|
||||
<KeepTogether>true</KeepTogether>
|
||||
<Paragraphs>
|
||||
<Paragraph>
|
||||
<TextRuns>
|
||||
<TextRun>
|
||||
<Value>="This is to certify that " & Fields!Salutation.Value & " " & Fields!EmpName.Value & " (CEL ID- " & Fields!EmpNo.Value & ") has been working in " & Parameters!CompanyInfo.Value & " since " & Fields!JoiningDate.Value & " as " & Fields!Article.Value & " " & Fields!Designation.Value & "." & IIf(Len(Fields!NID.Value) > 0, " " & Fields!HisHerCap.Value & " NID No. " & Fields!NID.Value & ".", "") & " " & Fields!HeShe.Value & " is a permanent employee of " & Parameters!CompanyInfo.Value & ". Currently, as per " & Fields!HisHer.Value & " last salary agreement effective from " & Fields!EffectDate.Value & ", " & LCase(Fields!HeShe.Value) & " has been drawing salary with the following breakdown:"</Value>
|
||||
<Style />
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style>
|
||||
<TextAlign>Left</TextAlign>
|
||||
</Style>
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<Top>1.3in</Top>
|
||||
<Height>0.6in</Height>
|
||||
<Width>6.5in</Width>
|
||||
<ZIndex>3</ZIndex>
|
||||
<Style>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
</Textbox>
|
||||
<Tablix Name="tblItems">
|
||||
<TablixBody>
|
||||
<TablixColumns>
|
||||
<TablixColumn>
|
||||
<Width>0.6in</Width>
|
||||
</TablixColumn>
|
||||
<TablixColumn>
|
||||
<Width>3.4in</Width>
|
||||
</TablixColumn>
|
||||
<TablixColumn>
|
||||
<Width>1.8in</Width>
|
||||
</TablixColumn>
|
||||
</TablixColumns>
|
||||
<TablixRows>
|
||||
<TablixRow>
|
||||
<Height>0.25in</Height>
|
||||
<TablixCells>
|
||||
<TablixCell>
|
||||
<CellContents>
|
||||
<Textbox Name="hdrSL">
|
||||
<CanGrow>true</CanGrow>
|
||||
<KeepTogether>true</KeepTogether>
|
||||
<Paragraphs>
|
||||
<Paragraph>
|
||||
<TextRuns>
|
||||
<TextRun>
|
||||
<Value>SL</Value>
|
||||
<Style>
|
||||
<FontWeight>Bold</FontWeight>
|
||||
</Style>
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style>
|
||||
<TextAlign>Center</TextAlign>
|
||||
</Style>
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<Style>
|
||||
<Border>
|
||||
<Style>Solid</Style>
|
||||
</Border>
|
||||
<BackgroundColor>Gainsboro</BackgroundColor>
|
||||
<VerticalAlign>Middle</VerticalAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
</Textbox>
|
||||
</CellContents>
|
||||
</TablixCell>
|
||||
<TablixCell>
|
||||
<CellContents>
|
||||
<Textbox Name="hdrItem">
|
||||
<CanGrow>true</CanGrow>
|
||||
<KeepTogether>true</KeepTogether>
|
||||
<Paragraphs>
|
||||
<Paragraph>
|
||||
<TextRuns>
|
||||
<TextRun>
|
||||
<Value>Particulars</Value>
|
||||
<Style>
|
||||
<FontWeight>Bold</FontWeight>
|
||||
</Style>
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style />
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<Style>
|
||||
<Border>
|
||||
<Style>Solid</Style>
|
||||
</Border>
|
||||
<BackgroundColor>Gainsboro</BackgroundColor>
|
||||
<VerticalAlign>Middle</VerticalAlign>
|
||||
<PaddingLeft>4pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
</Textbox>
|
||||
</CellContents>
|
||||
</TablixCell>
|
||||
<TablixCell>
|
||||
<CellContents>
|
||||
<Textbox Name="hdrAmount">
|
||||
<CanGrow>true</CanGrow>
|
||||
<KeepTogether>true</KeepTogether>
|
||||
<Paragraphs>
|
||||
<Paragraph>
|
||||
<TextRuns>
|
||||
<TextRun>
|
||||
<Value>Amount (Tk.)</Value>
|
||||
<Style>
|
||||
<FontWeight>Bold</FontWeight>
|
||||
</Style>
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style>
|
||||
<TextAlign>Right</TextAlign>
|
||||
</Style>
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<Style>
|
||||
<Border>
|
||||
<Style>Solid</Style>
|
||||
</Border>
|
||||
<BackgroundColor>Gainsboro</BackgroundColor>
|
||||
<VerticalAlign>Middle</VerticalAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>4pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
</Textbox>
|
||||
</CellContents>
|
||||
</TablixCell>
|
||||
</TablixCells>
|
||||
</TablixRow>
|
||||
<TablixRow>
|
||||
<Height>0.25in</Height>
|
||||
<TablixCells>
|
||||
<TablixCell>
|
||||
<CellContents>
|
||||
<Textbox Name="SLNo">
|
||||
<CanGrow>true</CanGrow>
|
||||
<KeepTogether>true</KeepTogether>
|
||||
<Paragraphs>
|
||||
<Paragraph>
|
||||
<TextRuns>
|
||||
<TextRun>
|
||||
<Value>=Fields!SLNo.Value</Value>
|
||||
<Style />
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style>
|
||||
<TextAlign>Center</TextAlign>
|
||||
</Style>
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<Style>
|
||||
<Border>
|
||||
<Style>Solid</Style>
|
||||
</Border>
|
||||
<VerticalAlign>Middle</VerticalAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
</Textbox>
|
||||
</CellContents>
|
||||
</TablixCell>
|
||||
<TablixCell>
|
||||
<CellContents>
|
||||
<Textbox Name="ItemName">
|
||||
<CanGrow>true</CanGrow>
|
||||
<KeepTogether>true</KeepTogether>
|
||||
<Paragraphs>
|
||||
<Paragraph>
|
||||
<TextRuns>
|
||||
<TextRun>
|
||||
<Value>=Fields!ItemName.Value</Value>
|
||||
<Style />
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style />
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<Style>
|
||||
<Border>
|
||||
<Style>Solid</Style>
|
||||
</Border>
|
||||
<VerticalAlign>Middle</VerticalAlign>
|
||||
<PaddingLeft>4pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
</Textbox>
|
||||
</CellContents>
|
||||
</TablixCell>
|
||||
<TablixCell>
|
||||
<CellContents>
|
||||
<Textbox Name="Amount">
|
||||
<CanGrow>true</CanGrow>
|
||||
<KeepTogether>true</KeepTogether>
|
||||
<Paragraphs>
|
||||
<Paragraph>
|
||||
<TextRuns>
|
||||
<TextRun>
|
||||
<Value>=Fields!Amount.Value</Value>
|
||||
<Style>
|
||||
<Format>#,##0.00</Format>
|
||||
</Style>
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style>
|
||||
<TextAlign>Right</TextAlign>
|
||||
</Style>
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<Style>
|
||||
<Border>
|
||||
<Style>Solid</Style>
|
||||
</Border>
|
||||
<VerticalAlign>Middle</VerticalAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>4pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
</Textbox>
|
||||
</CellContents>
|
||||
</TablixCell>
|
||||
</TablixCells>
|
||||
</TablixRow>
|
||||
<TablixRow>
|
||||
<Height>0.25in</Height>
|
||||
<TablixCells>
|
||||
<TablixCell>
|
||||
<CellContents>
|
||||
<Textbox Name="totLabel">
|
||||
<CanGrow>true</CanGrow>
|
||||
<KeepTogether>true</KeepTogether>
|
||||
<Paragraphs>
|
||||
<Paragraph>
|
||||
<TextRuns>
|
||||
<TextRun>
|
||||
<Value>Total Monthly Gross Salary</Value>
|
||||
<Style>
|
||||
<FontWeight>Bold</FontWeight>
|
||||
</Style>
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style>
|
||||
<TextAlign>Right</TextAlign>
|
||||
</Style>
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<Style>
|
||||
<Border>
|
||||
<Style>Solid</Style>
|
||||
</Border>
|
||||
<VerticalAlign>Middle</VerticalAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>4pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
</Textbox>
|
||||
<ColSpan>2</ColSpan>
|
||||
</CellContents>
|
||||
</TablixCell>
|
||||
<TablixCell />
|
||||
<TablixCell>
|
||||
<CellContents>
|
||||
<Textbox Name="totAmount">
|
||||
<CanGrow>true</CanGrow>
|
||||
<KeepTogether>true</KeepTogether>
|
||||
<Paragraphs>
|
||||
<Paragraph>
|
||||
<TextRuns>
|
||||
<TextRun>
|
||||
<Value>=Sum(Fields!Amount.Value)</Value>
|
||||
<Style>
|
||||
<FontWeight>Bold</FontWeight>
|
||||
<Format>#,##0.00</Format>
|
||||
</Style>
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style>
|
||||
<TextAlign>Right</TextAlign>
|
||||
</Style>
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<Style>
|
||||
<Border>
|
||||
<Style>Solid</Style>
|
||||
</Border>
|
||||
<VerticalAlign>Middle</VerticalAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>4pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
</Textbox>
|
||||
</CellContents>
|
||||
</TablixCell>
|
||||
</TablixCells>
|
||||
</TablixRow>
|
||||
</TablixRows>
|
||||
</TablixBody>
|
||||
<TablixColumnHierarchy>
|
||||
<TablixMembers>
|
||||
<TablixMember />
|
||||
<TablixMember />
|
||||
<TablixMember />
|
||||
</TablixMembers>
|
||||
</TablixColumnHierarchy>
|
||||
<TablixRowHierarchy>
|
||||
<TablixMembers>
|
||||
<TablixMember>
|
||||
<KeepWithGroup>After</KeepWithGroup>
|
||||
</TablixMember>
|
||||
<TablixMember>
|
||||
<Group Name="grpItemDetails" />
|
||||
<SortExpressions>
|
||||
<SortExpression>
|
||||
<Value>=Fields!SLNo.Value</Value>
|
||||
</SortExpression>
|
||||
</SortExpressions>
|
||||
</TablixMember>
|
||||
<TablixMember>
|
||||
<KeepWithGroup>Before</KeepWithGroup>
|
||||
</TablixMember>
|
||||
</TablixMembers>
|
||||
</TablixRowHierarchy>
|
||||
<DataSetName>SalaryCertificateLastAgreement</DataSetName>
|
||||
<Top>2.05in</Top>
|
||||
<Left>0.35in</Left>
|
||||
<Height>0.75in</Height>
|
||||
<Width>5.8in</Width>
|
||||
<ZIndex>4</ZIndex>
|
||||
<Style>
|
||||
<Border>
|
||||
<Style>None</Style>
|
||||
</Border>
|
||||
</Style>
|
||||
</Tablix>
|
||||
<Textbox Name="txtWords">
|
||||
<CanGrow>true</CanGrow>
|
||||
<KeepTogether>true</KeepTogether>
|
||||
<Paragraphs>
|
||||
<Paragraph>
|
||||
<TextRuns>
|
||||
<TextRun>
|
||||
<Value>="In Words: " & Fields!TakaInWords.Value</Value>
|
||||
<Style>
|
||||
<FontStyle>Italic</FontStyle>
|
||||
</Style>
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style />
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<Top>2.95in</Top>
|
||||
<Left>0.35in</Left>
|
||||
<Height>0.25in</Height>
|
||||
<Width>5.8in</Width>
|
||||
<ZIndex>5</ZIndex>
|
||||
<Style>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
</Textbox>
|
||||
<Textbox Name="txtClosing">
|
||||
<CanGrow>true</CanGrow>
|
||||
<KeepTogether>true</KeepTogether>
|
||||
<Paragraphs>
|
||||
<Paragraph>
|
||||
<TextRuns>
|
||||
<TextRun>
|
||||
<Value>="His other deductions are paid by the company."</Value>
|
||||
<Style />
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style>
|
||||
<TextAlign>Left</TextAlign>
|
||||
</Style>
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<Top>3.4in</Top>
|
||||
<Height>0.4in</Height>
|
||||
<Width>6.5in</Width>
|
||||
<ZIndex>6</ZIndex>
|
||||
<Style>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
</Textbox>
|
||||
<Textbox Name="txtSignature">
|
||||
<CanGrow>true</CanGrow>
|
||||
<KeepTogether>true</KeepTogether>
|
||||
<Paragraphs>
|
||||
<Paragraph>
|
||||
<TextRuns>
|
||||
<TextRun>
|
||||
<Value>Authorized Signature</Value>
|
||||
<Style>
|
||||
<FontWeight>Bold</FontWeight>
|
||||
</Style>
|
||||
</TextRun>
|
||||
</TextRuns>
|
||||
<Style>
|
||||
<TextAlign>Center</TextAlign>
|
||||
</Style>
|
||||
</Paragraph>
|
||||
</Paragraphs>
|
||||
<Top>4.55in</Top>
|
||||
<Height>0.25in</Height>
|
||||
<Width>2in</Width>
|
||||
<ZIndex>7</ZIndex>
|
||||
<Style>
|
||||
<TopBorder>
|
||||
<Style>Solid</Style>
|
||||
</TopBorder>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
<PaddingTop>2pt</PaddingTop>
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
<KeepTogether>true</KeepTogether>
|
||||
<Style>
|
||||
<Border>
|
||||
<Style>None</Style>
|
||||
</Border>
|
||||
</Style>
|
||||
</Rectangle>
|
||||
</CellContents>
|
||||
</TablixCell>
|
||||
</TablixCells>
|
||||
</TablixRow>
|
||||
</TablixRows>
|
||||
</TablixBody>
|
||||
<TablixColumnHierarchy>
|
||||
<TablixMembers>
|
||||
<TablixMember />
|
||||
</TablixMembers>
|
||||
</TablixColumnHierarchy>
|
||||
<TablixRowHierarchy>
|
||||
<TablixMembers>
|
||||
<TablixMember>
|
||||
<Group Name="grpEmployee">
|
||||
<GroupExpressions>
|
||||
<GroupExpression>=Fields!EmployeeID.Value</GroupExpression>
|
||||
</GroupExpressions>
|
||||
<PageBreak>
|
||||
<BreakLocation>Between</BreakLocation>
|
||||
</PageBreak>
|
||||
</Group>
|
||||
<SortExpressions>
|
||||
<SortExpression>
|
||||
<Value>=Fields!EmpNo.Value</Value>
|
||||
</SortExpression>
|
||||
</SortExpressions>
|
||||
</TablixMember>
|
||||
</TablixMembers>
|
||||
</TablixRowHierarchy>
|
||||
<DataSetName>SalaryCertificateLastAgreement</DataSetName>
|
||||
<Top>0.275in</Top>
|
||||
<Height>4.9in</Height>
|
||||
<Width>6.5in</Width>
|
||||
<Style>
|
||||
<Border>
|
||||
<Style>None</Style>
|
||||
</Border>
|
||||
</Style>
|
||||
</Tablix>
|
||||
</ReportItems>
|
||||
<Height>6.4in</Height>
|
||||
<Style />
|
||||
</Body>
|
||||
<Width>6.5in</Width>
|
||||
<Page>
|
||||
<PageHeader>
|
||||
<Height>1.4875in</Height>
|
||||
<PrintOnFirstPage>true</PrintOnFirstPage>
|
||||
<PrintOnLastPage>true</PrintOnLastPage>
|
||||
<Style>
|
||||
<Border>
|
||||
<Style>None</Style>
|
||||
</Border>
|
||||
</Style>
|
||||
</PageHeader>
|
||||
<PageHeight>11.69in</PageHeight>
|
||||
<PageWidth>8.27in</PageWidth>
|
||||
<LeftMargin>0.885in</LeftMargin>
|
||||
<RightMargin>0.885in</RightMargin>
|
||||
<TopMargin>0.7in</TopMargin>
|
||||
<BottomMargin>0.7in</BottomMargin>
|
||||
<Style />
|
||||
</Page>
|
||||
<AutoRefresh>0</AutoRefresh>
|
||||
<DataSources>
|
||||
<DataSource Name="dsSalaryCertificate">
|
||||
<ConnectionProperties>
|
||||
<DataProvider>System.Data.DataSet</DataProvider>
|
||||
<ConnectString>/* Local Connection */</ConnectString>
|
||||
</ConnectionProperties>
|
||||
<rd:DataSourceID>4c6f2d9a-7b1e-4a52-9d3f-2e8b1c0a5f61</rd:DataSourceID>
|
||||
</DataSource>
|
||||
</DataSources>
|
||||
<DataSets>
|
||||
<DataSet Name="SalaryCertificateLastAgreement">
|
||||
<Query>
|
||||
<DataSourceName>dsSalaryCertificate</DataSourceName>
|
||||
<CommandText>/* Local Query */</CommandText>
|
||||
</Query>
|
||||
<Fields>
|
||||
<Field Name="EmployeeID">
|
||||
<DataField>EmployeeID</DataField>
|
||||
<rd:TypeName>System.Int32</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="EmpNo">
|
||||
<DataField>EmpNo</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="EmpName">
|
||||
<DataField>EmpName</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="Salutation">
|
||||
<DataField>Salutation</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="HisHer">
|
||||
<DataField>HisHer</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="HeShe">
|
||||
<DataField>HeShe</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="HisHerCap">
|
||||
<DataField>HisHerCap</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="NID">
|
||||
<DataField>NID</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="Article">
|
||||
<DataField>Article</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="Designation">
|
||||
<DataField>Designation</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="Department">
|
||||
<DataField>Department</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="Grade">
|
||||
<DataField>Grade</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="JoiningDate">
|
||||
<DataField>JoiningDate</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="EffectDate">
|
||||
<DataField>EffectDate</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="SLNo">
|
||||
<DataField>SLNo</DataField>
|
||||
<rd:TypeName>System.Int32</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="ItemName">
|
||||
<DataField>ItemName</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="Amount">
|
||||
<DataField>Amount</DataField>
|
||||
<rd:TypeName>System.Double</rd:TypeName>
|
||||
</Field>
|
||||
<Field Name="TakaInWords">
|
||||
<DataField>TakaInWords</DataField>
|
||||
<rd:TypeName>System.String</rd:TypeName>
|
||||
</Field>
|
||||
</Fields>
|
||||
</DataSet>
|
||||
</DataSets>
|
||||
<ReportParameters>
|
||||
<ReportParameter Name="Logo">
|
||||
<DataType>String</DataType>
|
||||
<Nullable>true</Nullable>
|
||||
<AllowBlank>true</AllowBlank>
|
||||
<Prompt>Logo</Prompt>
|
||||
</ReportParameter>
|
||||
<ReportParameter Name="CompanyInfo">
|
||||
<DataType>String</DataType>
|
||||
<Nullable>true</Nullable>
|
||||
<AllowBlank>true</AllowBlank>
|
||||
<Prompt>CompanyInfo</Prompt>
|
||||
</ReportParameter>
|
||||
<ReportParameter Name="SearchCriteria">
|
||||
<DataType>String</DataType>
|
||||
<Nullable>true</Nullable>
|
||||
<AllowBlank>true</AllowBlank>
|
||||
<Prompt>SearchCriteria</Prompt>
|
||||
</ReportParameter>
|
||||
<ReportParameter Name="Address">
|
||||
<DataType>String</DataType>
|
||||
<Nullable>true</Nullable>
|
||||
<AllowBlank>true</AllowBlank>
|
||||
<Prompt>Address</Prompt>
|
||||
</ReportParameter>
|
||||
<ReportParameter Name="Phone">
|
||||
<DataType>String</DataType>
|
||||
<Nullable>true</Nullable>
|
||||
<AllowBlank>true</AllowBlank>
|
||||
<Prompt>Phone</Prompt>
|
||||
</ReportParameter>
|
||||
<ReportParameter Name="SalaryMonth">
|
||||
<DataType>String</DataType>
|
||||
<Nullable>true</Nullable>
|
||||
<AllowBlank>true</AllowBlank>
|
||||
<Prompt>SalaryMonth</Prompt>
|
||||
</ReportParameter>
|
||||
</ReportParameters>
|
||||
<rd:ReportUnitType>Inch</rd:ReportUnitType>
|
||||
<rd:ReportID>9b1e3f52-6a4d-4c8e-b2f7-1d5a0e9c3b74</rd:ReportID>
|
||||
</Report>
|
||||
|
|
@ -7,8 +7,8 @@
|
|||
<section name="InformationForReportTool" type="Ease.SearchTools.Objects.InformationForReportToolConfigHandler, Ease.SearchTools.Objects"/>
|
||||
</configSections>
|
||||
<dbSettings>
|
||||
<!--<connection name="conn" provider="sql" connectionString="server=cel80;Database=CELPayroll;User ID=CELPayroll;password=4B06094270245E4D5B63" sqlSyntax="SQL"/>-->
|
||||
<connection name="conn" provider="sql" connectionString="server=103.197.204.164,1718;Database=CELPayrol;User ID=DBuser;Password=ceLEa&e2025" sqlSyntax="SQL"/>
|
||||
<connection name="conn" provider="sql" connectionString="server=cel80;Database=CELPayroll;User ID=CELPayroll;password=4B06094270245E4D5B63" sqlSyntax="SQL"/>
|
||||
<!--<connection name="conn" provider="sql" connectionString="server=103.197.204.164,1718;Database=CELPayrol;User ID=DBuser;Password=ceLEa&e2025" sqlSyntax="SQL"/>-->
|
||||
</dbSettings>
|
||||
<appSettings>
|
||||
<add key="serviceHandler" value="Payroll.Service.dll/conn"/>
|
||||
|
|
|
|||
|
|
@ -1205,6 +1205,14 @@
|
|||
</argument>
|
||||
</arguments>
|
||||
</permissioninfo>
|
||||
<permissioninfo key="12.2.25" name="Salary Certificate Last Agreement" isvisible="true" parentkey="12.2" menufor="User">
|
||||
<formname>Payroll.Report.fReportSearch</formname>
|
||||
<showfunction>ShowDialog</showfunction>
|
||||
<arguments>
|
||||
<argument name="ReportID" value="510">
|
||||
</argument>
|
||||
</arguments>
|
||||
</permissioninfo>
|
||||
<permissioninfo key="12.2.16" name="Stuff List Without Salary" isvisible="true" parentkey="12.2" menufor="User">
|
||||
<formname>Payroll.Report.fReportSearch</formname>
|
||||
<showfunction>ShowDialog</showfunction>
|
||||
|
|
|
|||
|
|
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("26.10.26.0")]
|
||||
[assembly: AssemblyFileVersion("26.10.26.0")]
|
||||
[assembly: AssemblyVersion("26.11.25.0")]
|
||||
[assembly: AssemblyFileVersion("26.11.25.0")]
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user