digitaleservicebook photo & signature edition
This commit is contained in:
parent
3d024f1d45
commit
ed13e02cff
|
@ -1,11 +1,13 @@
|
||||||
using System;
|
using HRM.BO;
|
||||||
|
using HRM.DA;
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Data;
|
||||||
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Data;
|
using static HRM.Report.PayrollDataSet.PayrollDataSet;
|
||||||
using HRM.BO;
|
|
||||||
using HRM.DA;
|
|
||||||
|
|
||||||
namespace HRM.Report
|
namespace HRM.Report
|
||||||
{
|
{
|
||||||
|
@ -19,6 +21,10 @@ namespace HRM.Report
|
||||||
if (sEmpIDs != null)
|
if (sEmpIDs != null)
|
||||||
empID = Convert.ToInt32(sEmpIDs);
|
empID = Convert.ToInt32(sEmpIDs);
|
||||||
|
|
||||||
|
//string TargetFolder = @"Documents\EMPPHOTO\";
|
||||||
|
//string currentDirectory = Directory.GetCurrentDirectory();
|
||||||
|
string TargetFolder = System.IO.Path.Combine(System.Environment.CurrentDirectory + @"\Documents\EMPPHOTO\");
|
||||||
|
|
||||||
#region Employee general info
|
#region Employee general info
|
||||||
|
|
||||||
DataSet oEmp = new EmployeeService().GetEmpDigitalServiceBook(empID);
|
DataSet oEmp = new EmployeeService().GetEmpDigitalServiceBook(empID);
|
||||||
|
@ -75,6 +81,9 @@ namespace HRM.Report
|
||||||
oDR["ROADNOTA"] = oDRow["ROADNOTA"];
|
oDR["ROADNOTA"] = oDRow["ROADNOTA"];
|
||||||
oDR["WARDNOTA"] = oDRow["WARDNOTA"];
|
oDR["WARDNOTA"] = oDRow["WARDNOTA"];
|
||||||
|
|
||||||
|
oDR["PHOTO"] = System.IO.Path.Combine(TargetFolder + string.Format("Image-{0}.jpg", oDRow["EMPLOYEENO"]));
|
||||||
|
oDR["SIGNATURE"] = System.IO.Path.Combine(TargetFolder + string.Format("Signature-{0}.jpg", oDRow["EMPLOYEENO"]));
|
||||||
|
|
||||||
|
|
||||||
dTable.Rows.Add(oDR);
|
dTable.Rows.Add(oDR);
|
||||||
//count++;
|
//count++;
|
||||||
|
|
|
@ -479,6 +479,8 @@ namespace HRM.Report.PayrollDataSet {
|
||||||
|
|
||||||
private global::System.Data.DataColumn columnWARDNOTA;
|
private global::System.Data.DataColumn columnWARDNOTA;
|
||||||
|
|
||||||
|
private global::System.Data.DataColumn columnSIGNATURE;
|
||||||
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||||
public EMPDigitalServiceBookDataTable() {
|
public EMPDigitalServiceBookDataTable() {
|
||||||
|
@ -746,6 +748,14 @@ namespace HRM.Report.PayrollDataSet {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||||
|
public global::System.Data.DataColumn SIGNATUREColumn {
|
||||||
|
get {
|
||||||
|
return this.columnSIGNATURE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||||
[global::System.ComponentModel.Browsable(false)]
|
[global::System.ComponentModel.Browsable(false)]
|
||||||
|
@ -812,7 +822,8 @@ namespace HRM.Report.PayrollDataSet {
|
||||||
string THANATA,
|
string THANATA,
|
||||||
string VILLAGETA,
|
string VILLAGETA,
|
||||||
string ROADNOTA,
|
string ROADNOTA,
|
||||||
string WARDNOTA) {
|
string WARDNOTA,
|
||||||
|
string SIGNATURE) {
|
||||||
EMPDigitalServiceBookRow rowEMPDigitalServiceBookRow = ((EMPDigitalServiceBookRow)(this.NewRow()));
|
EMPDigitalServiceBookRow rowEMPDigitalServiceBookRow = ((EMPDigitalServiceBookRow)(this.NewRow()));
|
||||||
object[] columnValuesArray = new object[] {
|
object[] columnValuesArray = new object[] {
|
||||||
EMPLOYEEID,
|
EMPLOYEEID,
|
||||||
|
@ -843,7 +854,8 @@ namespace HRM.Report.PayrollDataSet {
|
||||||
THANATA,
|
THANATA,
|
||||||
VILLAGETA,
|
VILLAGETA,
|
||||||
ROADNOTA,
|
ROADNOTA,
|
||||||
WARDNOTA};
|
WARDNOTA,
|
||||||
|
SIGNATURE};
|
||||||
rowEMPDigitalServiceBookRow.ItemArray = columnValuesArray;
|
rowEMPDigitalServiceBookRow.ItemArray = columnValuesArray;
|
||||||
this.Rows.Add(rowEMPDigitalServiceBookRow);
|
this.Rows.Add(rowEMPDigitalServiceBookRow);
|
||||||
return rowEMPDigitalServiceBookRow;
|
return rowEMPDigitalServiceBookRow;
|
||||||
|
@ -895,6 +907,7 @@ namespace HRM.Report.PayrollDataSet {
|
||||||
this.columnVILLAGETA = base.Columns["VILLAGETA"];
|
this.columnVILLAGETA = base.Columns["VILLAGETA"];
|
||||||
this.columnROADNOTA = base.Columns["ROADNOTA"];
|
this.columnROADNOTA = base.Columns["ROADNOTA"];
|
||||||
this.columnWARDNOTA = base.Columns["WARDNOTA"];
|
this.columnWARDNOTA = base.Columns["WARDNOTA"];
|
||||||
|
this.columnSIGNATURE = base.Columns["SIGNATURE"];
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
@ -958,6 +971,8 @@ namespace HRM.Report.PayrollDataSet {
|
||||||
base.Columns.Add(this.columnROADNOTA);
|
base.Columns.Add(this.columnROADNOTA);
|
||||||
this.columnWARDNOTA = new global::System.Data.DataColumn("WARDNOTA", typeof(string), null, global::System.Data.MappingType.Element);
|
this.columnWARDNOTA = new global::System.Data.DataColumn("WARDNOTA", typeof(string), null, global::System.Data.MappingType.Element);
|
||||||
base.Columns.Add(this.columnWARDNOTA);
|
base.Columns.Add(this.columnWARDNOTA);
|
||||||
|
this.columnSIGNATURE = new global::System.Data.DataColumn("SIGNATURE", typeof(string), null, global::System.Data.MappingType.Element);
|
||||||
|
base.Columns.Add(this.columnSIGNATURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
@ -2687,6 +2702,22 @@ namespace HRM.Report.PayrollDataSet {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||||
|
public string SIGNATURE {
|
||||||
|
get {
|
||||||
|
try {
|
||||||
|
return ((string)(this[this.tableEMPDigitalServiceBook.SIGNATUREColumn]));
|
||||||
|
}
|
||||||
|
catch (global::System.InvalidCastException e) {
|
||||||
|
throw new global::System.Data.StrongTypingException("The value for column \'SIGNATURE\' in table \'EMPDigitalServiceBook\' is DBNull.", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
this[this.tableEMPDigitalServiceBook.SIGNATUREColumn] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||||
public bool IsEMPLOYEEIDNull() {
|
public bool IsEMPLOYEEIDNull() {
|
||||||
|
@ -3034,6 +3065,18 @@ namespace HRM.Report.PayrollDataSet {
|
||||||
public void SetWARDNOTANull() {
|
public void SetWARDNOTANull() {
|
||||||
this[this.tableEMPDigitalServiceBook.WARDNOTAColumn] = global::System.Convert.DBNull;
|
this[this.tableEMPDigitalServiceBook.WARDNOTAColumn] = global::System.Convert.DBNull;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||||
|
public bool IsSIGNATURENull() {
|
||||||
|
return this.IsNull(this.tableEMPDigitalServiceBook.SIGNATUREColumn);
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||||
|
public void SetSIGNATURENull() {
|
||||||
|
this[this.tableEMPDigitalServiceBook.SIGNATUREColumn] = global::System.Convert.DBNull;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
<xs:element name="VILLAGETA" msprop:Generator_ColumnPropNameInRow="VILLAGETA" msprop:Generator_ColumnPropNameInTable="VILLAGETAColumn" msprop:Generator_ColumnVarNameInTable="columnVILLAGETA" msprop:Generator_UserColumnName="VILLAGETA" type="xs:string" minOccurs="0" />
|
<xs:element name="VILLAGETA" msprop:Generator_ColumnPropNameInRow="VILLAGETA" msprop:Generator_ColumnPropNameInTable="VILLAGETAColumn" msprop:Generator_ColumnVarNameInTable="columnVILLAGETA" msprop:Generator_UserColumnName="VILLAGETA" type="xs:string" minOccurs="0" />
|
||||||
<xs:element name="ROADNOTA" msprop:Generator_ColumnPropNameInRow="ROADNOTA" msprop:Generator_ColumnPropNameInTable="ROADNOTAColumn" msprop:Generator_ColumnVarNameInTable="columnROADNOTA" msprop:Generator_UserColumnName="ROADNOTA" type="xs:string" minOccurs="0" />
|
<xs:element name="ROADNOTA" msprop:Generator_ColumnPropNameInRow="ROADNOTA" msprop:Generator_ColumnPropNameInTable="ROADNOTAColumn" msprop:Generator_ColumnVarNameInTable="columnROADNOTA" msprop:Generator_UserColumnName="ROADNOTA" type="xs:string" minOccurs="0" />
|
||||||
<xs:element name="WARDNOTA" msprop:Generator_ColumnPropNameInRow="WARDNOTA" msprop:Generator_ColumnPropNameInTable="WARDNOTAColumn" msprop:Generator_ColumnVarNameInTable="columnWARDNOTA" msprop:Generator_UserColumnName="WARDNOTA" type="xs:string" minOccurs="0" />
|
<xs:element name="WARDNOTA" msprop:Generator_ColumnPropNameInRow="WARDNOTA" msprop:Generator_ColumnPropNameInTable="WARDNOTAColumn" msprop:Generator_ColumnVarNameInTable="columnWARDNOTA" msprop:Generator_UserColumnName="WARDNOTA" type="xs:string" minOccurs="0" />
|
||||||
|
<xs:element name="SIGNATURE" msprop:Generator_ColumnPropNameInRow="SIGNATURE" msprop:Generator_ColumnPropNameInTable="SIGNATUREColumn" msprop:Generator_ColumnVarNameInTable="columnSIGNATURE" msprop:Generator_UserColumnName="SIGNATURE" type="xs:string" minOccurs="0" />
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
|
|
|
@ -133,6 +133,10 @@
|
||||||
<DataField>WARDNOTA</DataField>
|
<DataField>WARDNOTA</DataField>
|
||||||
<rd:TypeName>System.String</rd:TypeName>
|
<rd:TypeName>System.String</rd:TypeName>
|
||||||
</Field>
|
</Field>
|
||||||
|
<Field Name="SIGNATURE">
|
||||||
|
<DataField>SIGNATURE</DataField>
|
||||||
|
<rd:TypeName>System.String</rd:TypeName>
|
||||||
|
</Field>
|
||||||
</Fields>
|
</Fields>
|
||||||
<rd:DataSetInfo>
|
<rd:DataSetInfo>
|
||||||
<rd:DataSetName>DigitalServiceBookDataSet</rd:DataSetName>
|
<rd:DataSetName>DigitalServiceBookDataSet</rd:DataSetName>
|
||||||
|
@ -905,7 +909,7 @@
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox21</rd:DefaultName>
|
<rd:DefaultName>Textbox21</rd:DefaultName>
|
||||||
<Top>8.88506in</Top>
|
<Top>9.38506in</Top>
|
||||||
<Left>0.71685in</Left>
|
<Left>0.71685in</Left>
|
||||||
<Height>0.25in</Height>
|
<Height>0.25in</Height>
|
||||||
<Width>0.8125in</Width>
|
<Width>0.8125in</Width>
|
||||||
|
@ -938,7 +942,7 @@
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox21</rd:DefaultName>
|
<rd:DefaultName>Textbox21</rd:DefaultName>
|
||||||
<Top>8.88506in</Top>
|
<Top>9.38506in</Top>
|
||||||
<Left>4.7911in</Left>
|
<Left>4.7911in</Left>
|
||||||
<Height>0.25in</Height>
|
<Height>0.25in</Height>
|
||||||
<Width>1.88541in</Width>
|
<Width>1.88541in</Width>
|
||||||
|
@ -4545,8 +4549,8 @@
|
||||||
</Style>
|
</Style>
|
||||||
</Tablix>
|
</Tablix>
|
||||||
<Image Name="image2">
|
<Image Name="image2">
|
||||||
<Source>Database</Source>
|
<Source>External</Source>
|
||||||
<Value>=First(Fields!PHOTO.Value, "EMPDigitalServiceBook")</Value>
|
<Value>="file:///" & First(Fields!PHOTO.Value, "EMPDigitalServiceBook")</Value>
|
||||||
<MIMEType>image/jpeg</MIMEType>
|
<MIMEType>image/jpeg</MIMEType>
|
||||||
<Sizing>Fit</Sizing>
|
<Sizing>Fit</Sizing>
|
||||||
<Top>1.93056in</Top>
|
<Top>1.93056in</Top>
|
||||||
|
@ -4554,7 +4558,6 @@
|
||||||
<Height>1.20833in</Height>
|
<Height>1.20833in</Height>
|
||||||
<Width>0.99361in</Width>
|
<Width>0.99361in</Width>
|
||||||
<ZIndex>38</ZIndex>
|
<ZIndex>38</ZIndex>
|
||||||
<ToolTip>=First(Fields!PHOTO.Value, "EMPDigitalServiceBook")</ToolTip>
|
|
||||||
<Style>
|
<Style>
|
||||||
<Border>
|
<Border>
|
||||||
<Style>Solid</Style>
|
<Style>Solid</Style>
|
||||||
|
@ -5339,6 +5342,22 @@
|
||||||
<PaddingBottom>2pt</PaddingBottom>
|
<PaddingBottom>2pt</PaddingBottom>
|
||||||
</Style>
|
</Style>
|
||||||
</Textbox>
|
</Textbox>
|
||||||
|
<Image Name="image3">
|
||||||
|
<Source>External</Source>
|
||||||
|
<Value>="file:///" & First(Fields!SIGNATURE.Value, "EMPDigitalServiceBook")</Value>
|
||||||
|
<MIMEType>image/bmp</MIMEType>
|
||||||
|
<Sizing>Fit</Sizing>
|
||||||
|
<Top>8.78145in</Top>
|
||||||
|
<Left>0.70849in</Left>
|
||||||
|
<Height>0.49153in</Height>
|
||||||
|
<Width>1.1646in</Width>
|
||||||
|
<ZIndex>62</ZIndex>
|
||||||
|
<Style>
|
||||||
|
<Border>
|
||||||
|
<Style>None</Style>
|
||||||
|
</Border>
|
||||||
|
</Style>
|
||||||
|
</Image>
|
||||||
</ReportItems>
|
</ReportItems>
|
||||||
<Height>20.35496in</Height>
|
<Height>20.35496in</Height>
|
||||||
<Style />
|
<Style />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user