Ejemplo n.º 1
0
    public void browseFileDialog()
    {
        //save the check out information into the database
        int i = BLL_QMSDB_Procedures.QMSDBProcedure_CheckOUT(int.Parse(lblProcedureId.Text), Convert.ToInt32(Session["USERID"]));
        //get latest File details by the file ID
        DataTable dsFileDetails = BLL_QMSDB_Procedures.QMSDBProcedures_Edit(int.Parse(lblProcedureId.Text));

        string navURL = "";

        if (dsFileDetails.Rows.Count > 0)
        {
            txtProcedureSectionDetails.Text = dsFileDetails.Rows[0]["DETAILS"].ToString();
        }
    }
Ejemplo n.º 2
0
    public void showSaveDialog(string procedureid)
    {
        //checking for avoid the multiple Check Out the file
        DataTable dsOperationInfo = BLL_QMSDB_Procedures.QMSDBProcedures_Edit(int.Parse(procedureid));

        if (dsOperationInfo.Rows.Count > 0)
        {
            if (dsOperationInfo.Rows[0]["CHECK_INOUT_STATUS"].ToString() == "1")
            {
                String msg = String.Format("alert('You have already Checked Out the file.');window.close();");
                ScriptManager.RegisterStartupScript(Page, Page.GetType(), "msg", msg, true);
            }
            else
            {
                int i = BLL_QMSDB_Procedures.QMSDBProcedure_CheckOUT(int.Parse(procedureid), Convert.ToInt32(Session["USERID"]));
            }
        }
    }