Exemplo n.º 1
0
    protected void btnCreate_Click(object sender, EventArgs e)
    {
        int    iDepartmentID;
        String DeploymentDate;
        String DeploymentTime;
        String vcDescription;
        String CRFNumber;

        //int iCRFStatusID;


        iDepartmentID  = Convert.ToInt32(ddlDepartments.SelectedItem.Value);
        DeploymentDate = txtDeploymentDate.Text;
        DeploymentTime = ddlHH.SelectedItem.Value + ":" + ddlMM.SelectedItem.Value + ddlAMPM.SelectedItem.Value;
        vcDescription  = txtDecription.Text;
        CRFNumber      = txtCRF.Text;
        //iCRFStatusID = Convert.ToInt32(ddlStatus.SelectedItem.Value);


        String result = CrfDAL.CRFInsert(
            CRFNumber,
            iDepartmentID,
            DeploymentDate,
            DeploymentTime,
            vcDescription//,
            //iCRFStatusID
            );


        LoadCRF();
        ClearControla();
    }
Exemplo n.º 2
0
    protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        int    currentRowIndex = e.RowIndex;
        String CRFID           = ((Label)GridView1.Rows[currentRowIndex].FindControl("lblCRFId")).Text;

        //ErrorMessage = String.Format("CRFID={0}  ", CRFID);
        ErrorMessage = CrfDAL.DeleteCRFRecord(Convert.ToInt32(CRFID));
        LoadCRF();
    }
Exemplo n.º 3
0
 private void LoadCRF()
 {
     GridView1.DataSource = CrfDAL.GetCRFs();
     GridView1.DataBind();
 }
Exemplo n.º 4
0
 private void LoadDepartments()
 {
     ddlDepartments.DataSource = CrfDAL.GetDepartments();
     ddlDepartments.DataBind();
 }
Exemplo n.º 5
0
 private void LoadStatus()
 {
     ddlStatus.DataSource = CrfDAL.GetCRFITStatus();
     ddlStatus.DataBind();
 }