This commit is contained in:
Binary file not shown.
@@ -431,7 +431,7 @@ Partial Class PopUpVerFactura
|
||||
|
||||
|
||||
Dim bcode As New BarcodeLib.Barcode()
|
||||
Dim img = bcode.Encode(BarcodeLib.TYPE.CODE128, String.Format("{0}", noPallet), 50, 10)
|
||||
Dim img = bcode.Encode(BarcodeLib.TYPE.CODE128, String.Format("{0}", noPallet), 500, 100)
|
||||
Dim barcodebyte As Byte()
|
||||
Using ms = New MemoryStream()
|
||||
img.Save(ms, System.Drawing.Imaging.ImageFormat.Png)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -8,23 +8,34 @@
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.AdsCHeader .GvNominas th:nth-child(1),
|
||||
.AdsCHeader .GvNominas td:nth-child(1) {
|
||||
.GvNominas th:nth-child(1),
|
||||
.GvNominas td:nth-child(1) {
|
||||
width:1px;
|
||||
font-size:0px;
|
||||
word-break: break-all;
|
||||
}
|
||||
.ADSContainer .GvNominas th:nth-child(1),
|
||||
.ADSContainer .GvNominas td:nth-child(1) {
|
||||
/* display:none;*/
|
||||
visibility:hidden;
|
||||
}
|
||||
.AdsCHeader .GvNominas th:nth-child(2),
|
||||
.AdsCHeader .GvNominas td:nth-child(2) {
|
||||
text-align: left;
|
||||
width: 50px;
|
||||
}
|
||||
|
||||
.AdsCHeader .GvNominas th:nth-child(2),
|
||||
.AdsCHeader .GvNominas td:nth-child(2) {
|
||||
.AdsCHeader .GvNominas th:nth-child(3),
|
||||
.AdsCHeader .GvNominas td:nth-child(3) {
|
||||
text-align: left;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.GvNominas td:nth-child(n+3) {
|
||||
.GvNominas td:nth-child(n+4) {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.GvNominas td:nth-child(n+3) div {
|
||||
.GvNominas td:nth-child(n+4) div {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@@ -138,8 +149,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="portlet-body">
|
||||
<asp:GridView ID="GvNominas" runat="server" OnRowDataBound="GvNominas_RowDataBound" CssClass="table table-striped table-advance table-hover mysmallbtn ScrollAD Widthall GvNominas"
|
||||
Style="text-align: center;" GridLines="None" data-cols="2" data-rows="1" data-heighterror="360" ShowHeaderWhenEmpty="true" ShowHeader="true">
|
||||
<asp:GridView ID="GvNominas" runat="server" OnRowDataBound="GvNominas_RowDataBound" OnRowCreated="GvNominas_RowCreated" CssClass="table table-striped table-advance table-hover mysmallbtn ScrollAD Widthall GvNominas"
|
||||
Style="text-align: center;" GridLines="None" data-cols="3" data-rows="1" data-heighterror="360" ShowHeaderWhenEmpty="true" ShowHeader="true"
|
||||
DataKeyNames="CvePersonal,CveSubProyecto">
|
||||
<Columns></Columns>
|
||||
|
||||
</asp:GridView>
|
||||
|
||||
@@ -23,13 +23,18 @@ public partial class Nomina_ChecadorAsistencia : ClsPaginas
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
|
||||
DdlTurno.DataSource = GlobalDTTurno.FiltraParametros("CveEmpresa = " + UsuarioActual.CveEmpresa);
|
||||
DdlTurno.DataBind();
|
||||
|
||||
CargaTiposPeriodo();
|
||||
TxtRpdFechaInicio.Text = string.Format("{0:dd/MM/yyyy}", DateTime.Now);
|
||||
TxtRpdFechaFin.Text = string.Format("{0:dd/MM/yyyy}", DateTime.Now);
|
||||
|
||||
if (UsuarioActual.CveEmpresa == 119)
|
||||
{
|
||||
TxtRpdFechaInicio.Text = string.Format("{1}{0:/MM/yyyy}", DateTime.Now,(DateTime.Now.Day>15?"16":"01"));
|
||||
DdlTipoVista.SelectedValue = "2";
|
||||
}
|
||||
DdlTipoAsistencias.DataSource = GlobalDTAsistenciasInasistencias.FiltraParametros(string.Format("CveEmpresa = {0}", UsuarioActual.CveEmpresa));
|
||||
DdlTipoAsistencias.DataBind();
|
||||
|
||||
@@ -68,6 +73,9 @@ public partial class Nomina_ChecadorAsistencia : ClsPaginas
|
||||
DateTime FechaI = TxtRpdFechaInicio.Text.ToDateTime();
|
||||
DateTime FechaF = TxtRpdFechaFin.Text.ToDateTime().AddDays(1);
|
||||
DataTable dtCon = new DataTable();
|
||||
dtCon.Columns.Add(new DataColumn("CvePersonal", typeof(int)));
|
||||
dtCon.Columns.Add(new DataColumn("CveSubProyecto", typeof(int)));
|
||||
dtCon.Columns.Add(new DataColumn("SubProyecto", typeof(string)));
|
||||
dtCon.Columns.Add(new DataColumn("Codigo", typeof(string)));
|
||||
dtCon.Columns.Add(new DataColumn("Empleado", typeof(string)));
|
||||
string strasis = "<i class='fa fa-check-square' style=\"color:green;\"></i>";
|
||||
@@ -94,13 +102,28 @@ public partial class Nomina_ChecadorAsistencia : ClsPaginas
|
||||
}
|
||||
using (ClsNominas objnom = new ClsNominas())
|
||||
{
|
||||
int CveSubProyecto = -1;
|
||||
if (objnom.GetchecadorAsistencia(FechaI, FechaF, UsuarioActual.CveEmpresa))
|
||||
{
|
||||
DataTable dtASis = objnom.DTSetResultados.Tables[0];
|
||||
dtper = objnom.DTSetResultados.Tables[1];
|
||||
foreach (DataRow item in dtper.Rows)
|
||||
{
|
||||
if (CveSubProyecto != item["CveSubProyecto"].ToString().ToEntero())
|
||||
{
|
||||
CveSubProyecto = item["CveSubProyecto"].ToString().ToEntero();
|
||||
|
||||
DataRow drowsub = dtCon.NewRow();
|
||||
drowsub["CveSubProyecto"] = item["CveSubProyecto"];
|
||||
drowsub["SubProyecto"] = item["SubProyecto"];
|
||||
drowsub["Empleado"] = item["SubProyecto"];
|
||||
dtCon.Rows.Add(drowsub);
|
||||
}
|
||||
|
||||
DataRow drow = dtCon.NewRow();
|
||||
drow["CveSubProyecto"] = item["CveSubProyecto"];
|
||||
drow["SubProyecto"] = item["SubProyecto"];
|
||||
drow["CvePersonal"] = item["CvePersonal"];
|
||||
drow["Codigo"] = item["Codigo"];
|
||||
drow["Empleado"] = item["NombreCompleto"];
|
||||
CFecha = FechaI;
|
||||
@@ -247,6 +270,12 @@ public partial class Nomina_ChecadorAsistencia : ClsPaginas
|
||||
DataTable dtCon = generateTable();
|
||||
GvNominas.DataSource = dtCon;
|
||||
GvNominas.DataBind();
|
||||
if (GvNominas.Columns.Count > 2)
|
||||
{
|
||||
GvNominas.Columns[0].Visible = false;
|
||||
GvNominas.Columns[1].Visible = false;
|
||||
GvNominas.Columns[2].Visible = false;
|
||||
}
|
||||
DateTime fechai = TxtRpdFechaInicio.Text.ToDateTime();
|
||||
DateTime fechaf = TxtRpdFechaFin.Text.ToDateTime().AddDays(1);
|
||||
using (ClsGenerales ObjGral = new ClsGenerales())
|
||||
@@ -275,11 +304,22 @@ public partial class Nomina_ChecadorAsistencia : ClsPaginas
|
||||
UpDatos.Update();
|
||||
}
|
||||
|
||||
protected void GvNominas_RowCreated(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
e.Row.Cells[0].Visible = false;
|
||||
e.Row.Cells[1].Visible = false;
|
||||
//e.Row.Cells[2].Visible = false;
|
||||
|
||||
}
|
||||
protected void GvNominas_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
if (e.Row.DataKey("CvePersonal").ToEntero() <= 0)
|
||||
{
|
||||
e.Row.CssClass = "Totales";
|
||||
}
|
||||
for (int j = 0; j < e.Row.Cells.Count; j++)
|
||||
{
|
||||
string encoded = e.Row.Cells[j].Text;
|
||||
@@ -537,6 +577,29 @@ public partial class Nomina_ChecadorAsistencia : ClsPaginas
|
||||
ClosedXML.Excel.XLWorkbook wb = new ClosedXML.Excel.XLWorkbook();
|
||||
var libro = wb.AddWorksheet(dtCon, "Asistencia");
|
||||
|
||||
var myCustomStyle = ClosedXML.Excel.XLWorkbook.DefaultStyle;
|
||||
myCustomStyle.Fill.SetBackgroundColor(ClosedXML.Excel.XLColor.FromArgb(155, 187, 89));
|
||||
//155,187,89
|
||||
myCustomStyle.Font.SetBold(true);
|
||||
myCustomStyle.Font.SetFontSize(14);
|
||||
myCustomStyle.Font.FontColor = ClosedXML.Excel.XLColor.White;
|
||||
int cfila = 2;
|
||||
foreach (DataRow drow in dtCon.Rows)
|
||||
{
|
||||
if (drow["CvePersonal"].ToString().ToEntero() > 0)
|
||||
{
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
libro.Range(cfila,1, cfila, dtCon.Columns.Count).Style = myCustomStyle;
|
||||
}
|
||||
cfila++;
|
||||
}
|
||||
libro.Column(1).Delete();
|
||||
libro.Column(1).Delete();
|
||||
libro.Column(1).Delete();
|
||||
|
||||
//string strinicio;
|
||||
//string strfin;
|
||||
//ClosedXML.Excel.IXLFontBase fini;
|
||||
@@ -604,4 +667,5 @@ public partial class Nomina_ChecadorAsistencia : ClsPaginas
|
||||
Response.BinaryWrite(memoryStream.ToArray());
|
||||
Response.End();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -8906,6 +8906,15 @@ Partial Class Ventas
|
||||
|
||||
ViewState("CveVenta") = ObjFactura.CveVenta
|
||||
|
||||
|
||||
|
||||
|
||||
If Request("CveEmbarqueManifiesto") IsNot Nothing AndAlso IsNumeric(Request("CveEmbarqueManifiesto")) AndAlso Request("CveEmbarqueManifiesto").ToEntero() > 0 Then
|
||||
|
||||
If ObjVentas.Embarque_ManifiestoUpvta(ObjFactura.CveVenta, UsuarioActual.CveEmpresa, UsuarioActual.CveUsuario, Request("CveEmbarqueManifiesto").ToEntero()) Then
|
||||
|
||||
End If
|
||||
End If
|
||||
GVAnticipos.DataBind()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user