public Dictionary <String, object> toParam() { Dictionary <String, object> param = new Dictionary <string, object>(); DataTable dt = new GeneralDetailsQuality().toDataTable(); foreach (GeneralDetailsQuality qa in DTGeneralDetails) { dt.Rows.Add(qa.toDataRow().ItemArray); } param.Add("@ACCION", 1); param.Add("@vVariety", this.vVaariety); //param.Add("@nNetWeight", this.nNetWeight); //param.Add("@dReceiptDate", this.dReceiptDate); //param.Add("@dHarvestStart", this.dHarvestStart); //param.Add("@dHarvestEnd", this.dHarvestEnd); //param.Add("@iCutNumber", this.iCutNumber); param.Add("@nGrossWeight", this.nGrossWeight); param.Add("@IdProduct", this.IdProduct); param.Add("@IdProductClass", this.IdProductClass); param.Add("@txtPlanta", this.txtPlanta); param.Add("@txtCorteNumero", this.iCutNumber); param.Add("@txtSemana", this.txtSemana); param.Add("@txtSecciones", this.txtSecciones); param.Add("@txtLibrasTotales", this.nNetWeight); param.Add("@txtInvernadero", this.txtInvernadero); param.Add("@txtHoraCosechaInicio", this.dHarvestStart.ToString("yyyy-MM-dd HH:mm")); param.Add("@txtHoraRecepcion", this.dReceiptDate.ToString("yyyy-MM-dd HH:mm")); param.Add("@txtHoraCosechaFin", this.dHarvestEnd.ToString("yyyy-MM-dd HH:mm")); param.Add("@txtDiasCorte", this.txtDiasCorte); param.Add("@txtApuntador", this.txtApuntador); param.Add("@txtPuntoRocio", this.txtPuntoRocio); param.Add("@txtHumedadRelativa", this.txtHumedadRelativa); param.Add("@txtTempAmbiente", this.txtTempAmbiente); param.Add("@txtPesoMuestra", this.txtPesoMuestra); param.Add("@txtVFolio", this.txtVFolio); param.Add("@ddlAnalistas", this.ddlAnalistas); param.Add("@txtComments", this.txtComments); param.Add("@SelectedQty", this.SelectedQty); param.Add("@SelectedPolvo", this.SelectedPolvo); param.Add("@SelectedManchado", this.SelectedManchado); param.Add("@txtCasesTotales", this.txtCasesTotales); param.Add("@txtStatus", this.txtStatus); param.Add("@txtQtySugerida", this.txtQtySugerida); param.Add("@bExpected", this.bExpected); param.Add("@bPesticide", this.bPesticide); param.Add("@bCondensed", this.bCondensed); param.Add("@ddlDisposition", this.ddlDisposition); param.Add("@txtTempPulp", this.txtTempPulp); param.Add("@txtFlavor", this.txtFlavor); param.Add("@DTGeneralDetails", dt); return(param); }
public Dictionary <String, object> toParam() { Dictionary <String, object> param = new Dictionary <string, object>(); DataTable dt = new GeneralDetailsQuality().toDataTable(); foreach (GeneralDetailsQuality qa in DTGeneralDetails) { dt.Rows.Add(qa.toDataRow()); } param.Add("@DTGeneralDetails", dt); param.Add("@IDQualityHeader", this.IDQualityHeader); param.Add("@IDProductClass", this.IDProductClass); param.Add("@vFolio", this.vFolio); param.Add("@txtCasesTotales", this.txtCasesTotales); return(param); }