示例#1
0
    private void datalistBind()
    {
        nszillow.clsagtrev obj = new nszillow.clsagtrev();
        DataSet            ds  = obj.Disp_Rev_By_Agent(Convert.ToInt32(Session["cod"]));

        datalstrev.DataSource = ds;
        datalstrev.DataBind();
    }
示例#2
0
    protected void btnsubmit_Click(object sender, EventArgs e)
    {
        nszillow.clsagtrev    obj    = new nszillow.clsagtrev();
        nszillow.clsagtrevprp objprp = new nszillow.clsagtrevprp();
        objprp.agtrevagtcod = Convert.ToInt32(Request.QueryString["agtcod"]);
        objprp.agtrevprpcod = Convert.ToInt32(Request.QueryString["prpcod"]);
        objprp.agtrevusrcod = Convert.ToInt32(Session["cod"]);
        objprp.agtrevdat    = DateTime.Now;
        objprp.agtrevtit    = txtboxrevtit.Text;
        objprp.agtrevdsc    = txtboxrevdsc.Text;
        objprp.agtrevscr    = Rating1.CurrentRating;

        try
        {
            obj.Save_Rec(objprp);
        }
        catch
        {
        }
    }