Tuesday, October 22, 2019

Wednesday, October 16, 2019

Html Report or Html Print

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
    <style>
        .main {
            height: 420px;
            width: 595px;
           
        }
        .border{
            border: solid 1px;
        }
        body {
            font-size: 8px;
        }

        table{
            border-collapse: collapse;
        }
        .pad td,.pad th{
            padding:2px;
        }
    </style>
</head>
<body>
    <table border="1" class="main" cellspacing="0" cellpadding="0">
        <tr>
            <td valign="top">


                <table width="100%" cellspacing="0" cellpadding="0">
                    <tr>
                        <td valign="top">
                            <table width="100%" cellspacing="0" cellpadding="0" class="pad">
                                <tr>
                                    <td width="50%">
                                        <h1>SAGAR & BROTHERS</h1>

                                        HO.3/112 RUI KI MANDI NEAR UNITED BANK, 07-DELHI

                                        <br />
                                        <br />
                                        <br />
                                        <strong>Phone</strong> : 73519514496, 8279962626, 9411923101
                                    </td>
                                    <td width="50%">
                                        <strong>M/S DYANA INTERNATIONAL (BEAUTY PRODUCTS)</strong>
                                        <BR>
                                        FAC-214/5, WAZIRPUR INDUSTRIAL, AREA, DELHI 110052
                                        <BR>07 DELHI
                                        <BR>
                                        Ph.No: 011-464545444
                                        <BR>
                                        GST:055546777879997US
                                    </td>
                                </tr>

                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <table border="1" width="100%" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <table  cellspacing="0" cellpadding="0" class="pad">
                                            <tr>
                                                <td>Email</td>
                                                <td>:</td>
                                                <td>abchsj@gsmsi.com</td>
                                            </tr>
                                            <tr>
                                                <td>GST IN</td>
                                                <td>:</td>
                                                <td>DKLFJKLSD7889889LKFD</td>
                                            </tr>
                                        </table>

                                    </td>
                                    <td>
                                        <h2>DEBIT NOTE</h2>
                                    </td>
                                    <td>
                                        <table  cellspacing="0" cellpadding="0" class="pad">
                                            <tr>
                                                <td>P.Return</td>
                                                <td>:</td>
                                                <td>DN46546456</td>
                                            </tr>
                                            <tr>
                                                <td>Sales Mam</td>
                                                <td>:</td>
                                                <td></td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td>
                                        <table cellspacing="0" cellpadding="0" class="pad">
                                            <tr>
                                                <td>Date</td>
                                                <td>:</td>
                                                <td>05-Oct-2019</td>
                                            </tr>
                                            <tr>
                                                <td> Due Date</td>
                                                <td>:</td>
                                                <td>05-Oct-2019</td>
                                            </tr>
                                        </table>

                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <table border="1" width="100%" border="0" cellpadding="0" cellspacing="0" class="pad">
                                <tr>
                                    <th>
                                        SN
                                    </th>
                                    <th>
                                        Qty
                                    </th>
                                    <th align="left">
                                        Product
                                    </th>
                                    <th>
                                        SHADE
                                    </th>
                                    <th>
                                        HSN
                                    </th>
                                    <th>
                                        MRP
                                    </th>
                                    <th>
                                        Rate
                                    </th>
                                    <th>
                                        Dis
                                    </th>
                                    <th>
                                        Dis
                                    </th>
                                    <th>
                                        IGST
                                    </th>
                                    <th>
                                    </th>
                                    <th>
                                        Amount
                                    </th>
                                </tr>
                                <tr>
                                    <td align="center" valign="top" style="height:140px">
                                        1
                                    </td>
                                    <td align="center" valign="top">
                                        4
                                    </td>
                                    <td valign="top">
                                        MC Electics
                                    </td>
                                    <td align="center" valign="top">
                                        0989
                                    </td>
                                    <td align="center" valign="top">
                                        33
                                    </td>
                                    <td align="center" valign="top">
                                        757
                                    </td>
                                    <td align="center" valign="top">
                                        45
                                    </td>
                                    <td align="center" valign="top">
                                        0
                                    </td>
                                    <td align="center" valign="top">
                                        0
                                    </td>
                                    <td align="center" valign="top">
                                        14
                                    </td>
                                    <td align="center" valign="top">
                                        0
                                    </td>
                                    <td align="center" valign="top">
                                        200
                                    </td>
                                </tr>
                                <tfoot>
                                    <tr>
                                        <td colspan="12">Qty:54</td>
                                    </tr>
                                </tfoot>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td width="70%">
                                        <table border="1" width="100%" cellspacing="0" cellpadding="0" class="pad">
                                            <tr>
                                                <th>ClASS</th>
                                                <th>TOTAL</th>
                                                <th>SCH.</th>
                                                <th>DESC.</th>
                                                <th>HOST</th>
                                                <th colspan="2">TOTAL IGST</th>
                                            </tr>
                                            <tr>
                                                <td>IGST 5:00</td>
                                                <td>0.00</td>
                                                <td>0.00</td>
                                                <td>5.22</td>
                                                <td>0.00</td>
                                                <td>0.00</td>
                                                <td>0.00</td>
                                            </tr>
                                            <tr>
                                                <td>IGST 5:00</td>
                                                <td>0.00</td>
                                                <td>0.00</td>
                                                <td>5.22</td>
                                                <td>0.00</td>
                                                <td>0.00</td>
                                                <td>0.00</td>
                                            </tr>
                                            <tr>
                                                <td>IGST 5:00</td>
                                                <td>0.00</td>
                                                <td>0.00</td>
                                                <td>5.22</td>
                                                <td>0.00</td>
                                                <td>0.00</td>
                                                <td>0.00</td>
                                            </tr>
                                            <tr>
                                                <td>IGST 5:00</td>
                                                <td>0.00</td>
                                                <td>0.00</td>
                                                <td>5.22</td>
                                                <td>0.00</td>
                                                <td>0.00</td>
                                                <td>0.00</td>
                                            </tr>
                                            <tr>
                                                <td>TOTAL</td>
                                                <td>0.00</td>
                                                <td>0.00</td>
                                                <td>5.22</td>
                                                <td>0.00</td>
                                                <td>0.00</td>
                                                <td>0.00</td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td valign="top" width="30%">
                                        <table width="100%" cellspacing="0" cellpadding="0" class="pad">
                                            <tr>
                                                <td width="60%" align="left">SUB TOTAL</td>
                                                <td width="40%" align="right">545</td>
                                            </tr>
                                            <tr>
                                                <td>IGST PAYBLE</td>
                                                <td align="right">54</td>
                                            </tr>
                                            <tr>
                                                <td>PAYBLE</td>
                                                <td align="right">54</td>
                                            </tr>
                                            <tr>
                                                <td>ADD/LESS</td>
                                                <td align="right">54</td>
                                            </tr>
                                            <tr>
                                                <td>CR/DR Note</td>
                                                <td align="right">54</td>
                                            </tr>
                                            <tr style="border:1px solid">
                                                <th align="left">Grand Total</th>
                                                <th align="right">887</th>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <!--<tr style="border:solid 1px;">
                                    <td colspan="2" >a</td>
                                </tr>-->
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table border="1" width="100%" cellspacing="0" cellpadding="0" class="pad">
                                <tr>
                                    <td>ss
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table border="1" height="36" width="100%" cellspacing="0" cellpadding="0" class="pad">
                                <tr>
                                    <td width="40%">
                                        <h2>Terms & Condition</h2>                                       
                                        GOOdsd dsjfhsdjfhsjd                                       
                                        <br>GOOdsd dsjfhsdjfhsjd
                                    </td>
                                    <td valign="top" align="center" width="30%">
                                        Receiver
                                    </td>
                                    <td valign="top" align="center" width="30%">
                                        For The Company
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</body>
</html>

Wednesday, October 9, 2019

Monday, September 30, 2019

HTML Report or HTML Print

 A  
1.Design



2.Html


<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style>
     
        table{
            border-collapse:collapse;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <table class="tbl" width="420" height="595" border="1" >
            <tr>
                <td valign="top">
                    <table height="100" width="100%">
                        <tr>
                            <td>

                            </td>
                        </tr>
                    </table>
                    <table width="100%" height="50" border="1">
                        <tr>
                            <td width="50">Name</td>
                            <td></td>
                            <td width="50">Address</td> 
                            <td></td>
                        </tr>                     
                    </table>
                    <table width="100%" height="80" border="1">
                        <tr>                         
                            <td>Wages</td>                           
                            <td>Roll No</td>
                            <td>Plant</td>                           
                            <td>Sallary</td>
                            <td>Join Date</td>                           
                        </tr> 
                        <tr>                         
                            <td>Raj Kumar</td>                           
                            <td>9898989</td>
                            <td>Agra</td>                           
                            <td>50000</td>
                            <td>12-Aug-2019</td>                           
                        </tr>
                    </table>
                     <table width="100%" height="45" border="1">
                        <tr>                         
                            <td>Wages</td>                           
                            <td>Roll No</td>
                            <td>Plant</td>                           
                            <td>Sallary</td>
                            <td>Join Date</td>                           
                        </tr> 
                     
                    </table>
                    <table height="150" width="100%">
                        <tr>
                            <td>

                            </td>
                        </tr>
                    </table>
                    <table height="" width="100%">
                        <tr>
                            <td align="center">
                                 hdkfjhadjshfkhkdshfjdh ljdhfkadshfads fhkja<br>
                                Adfhjkdshf  jdhfjhdskfhs
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>







B

1.Design



2.

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style>
        table {
            border-collapse: collapse;
        }

        .center {
            width: 400px;
            margin-left: 10px;
            margin-right: 10px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <table class="tbl" width="420" height="595" border="1">
            <tr>
                <td valign="top">
                    <table height="100" width="100%">
                        <tr>
                            <td></td>
                        </tr>
                    </table>
                    <table class="center">
                        <tr>
                            <td>
                                <table width="100%" height="50" border="1">
                                    <tr>
                                        <td width="50">Name</td>
                                        <td></td>
                                        <td width="50">Address</td>
                                        <td></td>
                                    </tr>
                                </table>
                                <table width="100%" height="80" border="1">
                                    <tr>
                                        <td>Wages</td>
                                        <td>Roll No</td>
                                        <td>Plant</td>
                                        <td>Sallary</td>
                                        <td>Join Date</td>
                                    </tr>
                                    <tr>
                                        <td>Raj Kumar</td>
                                        <td>9898989</td>
                                        <td>Agra</td>
                                        <td>50000</td>
                                        <td>12-Aug-2019</td>
                                    </tr>
                                </table>
                                <table width="100%" height="45" border="1">
                                    <tr>
                                        <td>Wages</td>
                                        <td>Roll No</td>
                                        <td>Plant</td>
                                        <td>Sallary</td>
                                        <td>Join Date</td>
                                    </tr>

                                </table>
                            </td>
                        </tr>
                    </table>
                    <table height="150" width="100%">
                        <tr>
                            <td></td>
                        </tr>
                    </table>
                    <table height="" width="100%">
                        <tr>
                            <td align="center">hdkfjhadjshfkhkdshfjdh ljdhfkadshfads fhkja<br>
                                Adfhjkdshf  jdhfjhdskfhs
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>










Saturday, August 24, 2019

c# 7 tuples enable

1. Enable tuple
 Install System.Tuples from NuGet Package Manager



2. c#7  new tuple return


using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using WebApplication8.Models;

namespace WebApplication8.Controllers
{
    public class home_Controller : ApiController
    {
        //type1 
        [HttpGet]
        public (int st, string msg, List<Employee> emp_list) Get_Data([FromUri] Employee d)
        {
            int status = 1;
            string message = "Success";
            List<Employee> employee_list = new List<Employee>() { new Employee { Address = "Agra", Emp_Name = "Rinkesh", Mobile = 987998, Srno = 1 }
            ,new Employee { Address="Agra",Emp_Name="Manish",Mobile=987998,Srno=2 }
            ,new Employee { Address="Sandeep",Emp_Name="Mathura",Mobile=5555,Srno=3}
            };

            return (st: status, msg: message, emp_list: employee_list);
        }
       
        //type2 
        [HttpGet]
        public (int st, string msg, List<Employee> emp_list) Get_Data([FromUri] Employee d)
        {
            int status = 1;
            string message = "Success";
            List<Employee> employee_list = new List<Employee>() { new Employee { Address = "Agra", Emp_Name = "Rinkesh", Mobile = 987998, Srno = 1 }
            ,new Employee { Address="Agra",Emp_Name="Manish",Mobile=987998,Srno=2 }
            ,new Employee { Address="Sandeep",Emp_Name="Mathura",Mobile=5555,Srno=3}
            };

            return (status, message, employee_list);
        }
    }
}


Raw Insert query in EF8 or Entity Framwork 8

          public async Task<object> InsertRack(Rack RackInsert)         {             try             {                 sql = " i...