Exemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        FileID = Convert.ToInt32(Request.QueryString["FileID"]);

        DataTable dsGetLastestFileInfoByID = BLL_QMSDB_Procedures.QMSDBProcedures_History(FileID);

        if (dsGetLastestFileInfoByID.Rows.Count > 0)
        {
            DataRow dr = dsGetLastestFileInfoByID.Rows[0];
            lblFileName.Text = dr["FILESNAME"].ToString();
            if (dr["CREATED_BY"].ToString() != "")
            {
                lblCreatedBy.Text = dr["CREATED_BY"].ToString();
            }
            else
            {
                lblCreatedBy.Text = "Office";
            }

            lblCreationDate.Text = ConvertDateToString(dr["CREATED_DATE"].ToString(), "dd-MMM-yy HH:mm");
            //if (dr["Opp_User"].ToString() != "")
            //{
            //    lblLastOperation.Text = dr["Operation_Type"].ToString() + " by " + dr["Opp_User"].ToString();
            //    lblLastOperationDt.Text = ConvertDateToString(dr["Operation_date"].ToString(), "dd-MMM-yy HH:mm");
            //}
        }

        // DataSet dsOperationDetailsByID = objQMS.GetOprationDetailsByID(FileID);

        //dvOperations.DataSource = dsOperationDetailsByID.Tables[0];
        //dvOperations.DataBind();

        dtrOppGrid.DataSource = dsGetLastestFileInfoByID;
        dtrOppGrid.DataBind();
    }