public vDatosEPProc GetDatos(string NUM_PROC)
        {
            EstPrevBLL epBLL = new EstPrevBLL();
            using (Entities db = new Entities())
            {
                try{
                    Mapper.CreateMap<vDatosEP, vDatosEPProc>();

                    PCONTRATOS Proceso = db.PCONTRATOS.Where(t => t.PRO_SEL_NRO == NUM_PROC).FirstOrDefault();
                    PSOLICITUDES Solicitud = db.PSOLICITUDES.Where(t => t.COD_SOL == Proceso.NUM_SOL).FirstOrDefault();
                    vDatosEP DatosEP = epBLL.GetDatos(Solicitud.COD_EP);

                    vDatosEPProc DatEPPrc = new vDatosEPProc();
                    Mapper.Map(DatosEP, DatEPPrc);

                    DatEPPrc.NRO_PROC = Proceso.PRO_SEL_NRO;
                    DatEPPrc.FEC_PROC = (DateTime) Proceso.FEC_REG;

                    return DatEPPrc;

                }catch{
                    vDatosEPProc dat = new vDatosEPProc();
                    return dat;
                }

            }
        }
Beispiel #2
0
 public vELABORARMINUTA GetMinuta(string NUM_PROC)
 {
     EstPrevBLL objEstPrev = new EstPrevBLL();
     return objEstPrev.GetMinuta(NUM_PROC);
 }
Beispiel #3
0
 public ByARpt ElaborarMinuta(vELABORARMINUTA Reg)
 {
     EstPrevBLL objEstPrev = new EstPrevBLL();
     return objEstPrev.ElaborarMinuta(Reg);
 }
 public List<vESTPREV_CONSULTA> GetFiltros(CONSULTA_EP_DTO Reg)
 {
     EstPrevBLL mEstPrev = new EstPrevBLL();
     return mEstPrev.GetFiltros(Reg);
 }
        protected void Button1_Click(object sender, EventArgs e)
        {
            EstPrevBLL epBLL = new EstPrevBLL();
            List<vEP_CLAUSULAS_DTO> lst = epBLL.GetClausulas("-00001");
            string temp = "";
            foreach (vEP_CLAUSULAS_DTO i in lst) {
                temp += i.CLA_CRUZADA;
            }

            //Response.Clear();
            //Response.Buffer = true;
            //Response.ContentType = "application/vnd.openxmlformatsofficedocument.wordprocessingml.documet";
            //Response.AddHeader("Content-Disposition", "attachment; filename=WORK_ORDER.doc");
            //System.IO.StringWriter writer = new System.IO.StringWriter();
            //System.Web.UI.HtmlTextWriter html = new System.Web.UI.HtmlTextWriter(writer);
            //html.Write(temp);
            //Response.Write(writer);
            //Response.End();
            #region word2
            //        var strBody=  new System.Text.StringBuilder("");

            //strBody.Append("<html " +
            //        "xmlns:o='urn:schemas-microsoft-com:office:office' " +
            //        "xmlns:w='urn:schemas-microsoft-com:office:word'" +
            //        "xmlns='http://www.w3.org/TR/REC-html40'>" +
            //        "<head><title>Time</title>");

            ////'The setting specifies document's view after it is downloaded as Print
            ////'instead of the default Web Layout
            //strBody.Append("<!--[if gte mso 9]>" +
            //                         "<xml>" +
            //                         "<w:WordDocument>" +
            //                         "<w:View>Print</w:View>" +
            //                         "<w:Zoom>90</w:Zoom>" +
            //                         "<w:DoNotOptimizeForBrowser/>" +
            //                         "</w:WordDocument>" +
            //                         "</xml>" +
            //                         "<![endif]-->");

            //strBody.Append("<style>" +
            //                        "<!-- /* Style Definitions */" +
            //                        "@page Section1" +
            //                        "   {size:8.5in 11.0in; " +
            //                        "   margin:1.0in 1.25in 1.0in 1.25in ; " +
            //                        "   mso-header-margin:.5in; " +
            //                        "   mso-footer-margin:.5in; mso-paper-source:0;}" +
            //                        " div.Section1" +
            //                        "   {page:Section1;}" +
            //                        "-->" +
            //                       "</style></head>") ;

            //strBody.Append("<body lang=EN-US style='tab-interval:.5in'>" +
            //                        "<div class=Section1>" +
            //                      temp+
            //                        "</div></body></html>");

            ////'Force this content to be downloaded
            ////'as a Word document with the name of your choice
            //Response.AppendHeader("Content-Type", "application/msword");
            //Response.AppendHeader ("Content-disposition","attachment; filename=myword.doc");
            //Response.Write(strBody);
            #endregion
        }
 public List<vEP_CDP_DTO> GetCDPs(string NRO_CDP)
 {
     EstPrevBLL o = new EstPrevBLL();
     return o.GetCDPsExt(NRO_CDP);
 }