Example #1
0
    protected void btnsubmit_Click(object sender, EventArgs e)
    {
        P.AdminInsertentryreceivedon           = Convert.ToDateTime(txtreceivedate.Value);
        P.AdminInsertentryreceivedby           = Convert.ToString(ddlreceiveby.SelectedItem);
        P.AdminInsertentryestimatedongoingdate = Convert.ToDateTime(txtreceivedate.Value).AddDays(1);
        P.AdminInsertentrycreatedby            = Convert.ToInt32(Session["username"]);
        P.AdminInsertentryshipment             = Convert.ToInt32(ddllicence.SelectedValue);
        P.AdminInsertentryrider = Convert.ToInt32(ddlreceiveby.SelectedValue);
        P.AdminFetchID          = Convert.ToInt32(ddlreceiveby.SelectedValue);
        dt = f.AdminFetchcheckshipmententry(P);

        if (dt.Rows[0][0] != null)
        {
            insert.AdminInsertshipmententry(P);
        }

        else
        {
        }
    }