예제 #1
0
    protected void btnClearFilter_Click(object sender, EventArgs e)
    {
        ViewState["VesselCode"] = 0;

        ViewState["DeptCode"] = null;

        ViewState["SORTDIRECTION"] = null;
        ViewState["SORTBYCOLOUMN"] = null;


        BindFleetDLL();
        BindVesselDDL();


        DDLOfficeDept.SelectedValue = "0";


        optResponseStatus.SelectedValue = "1";
        optSMSReview.SelectedValue      = "2";

        txtSearchBy.Text = "";

        BindSCMResponseSearch();
        UpdPnlGrid.Update();
    }
    protected void onDelete(object source, CommandEventArgs e)
    {
        int retval = BLL_PURC_ItemLocation.DeleteLocation(Convert.ToInt32(e.CommandArgument.ToString()), Convert.ToInt32(Session["USERID"].ToString()));

        BindLocation();
        UpdPnlGrid.Update();
    }
예제 #3
0
    protected void btnClearFilter_Click(object sender, EventArgs e)
    {
        try
        {
            ViewState["SORTDIRECTION"] = null;
            ViewState["SORTBYCOLOUMN"] = null;

            ViewState["RecordDisplayType"]     = "C";
            optRecordDisplayType.SelectedValue = "C";
            ViewState["LocationID"]            = null;

            DDLFleet.SelectedValue = "0";
            BindVesselDDL();
            DDLVessel.SelectedValue = "0";
            txtFromDate.Text        = "";
            txtToDate.Text          = "";
            ddlFunction.ClearSelection();

            BindSystem_Location();
            BindSubSystem_Location();
            BindRuningHours();
            UpdPnlGrid.Update();
        }
        catch (Exception ex)
        {
            UDFLib.WriteExceptionLog(ex);
            string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');";
            ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true);
        }
    }
    protected void onDelete(object source, CommandEventArgs e)
    {
        int retval = BLL_QMSDB_ProcedureSection.DeleteReadMandatory(Convert.ToInt32(e.CommandArgument.ToString().Split(',')[1].ToString()), Convert.ToInt32(e.CommandArgument.ToString().Split(',')[0].ToString()), Convert.ToInt32(Session["USERID"].ToString()));

        BindProcedureRead();
        UpdPnlGrid.Update();
    }
    protected void btnClearFilter_Click(object sender, EventArgs e)
    {
        ViewState["VesselCode"] = 0;

        ViewState["DeptCode"] = null;

        ViewState["SORTDIRECTION"] = null;
        ViewState["SORTBYCOLOUMN"] = null;

        BindFleetDLL();
        BindVesselDDL();

        FillDDLOfficeDept();


        optSMSReview.SelectedValue  = "2";
        optAssignDept.SelectedValue = "2";

        txtSearchBy.Text = "";
        BindFleetDLL();
        DDLFleet.SelectedValue = Session["USERFLEETID"].ToString();

        FillDDLYear();
        SetPreviousMonthYear();

        ucCustomPagerItems.PageSize = 15;
        BindSCMIssueAssignmentSearch();
        UpdPnlGrid.Update();
    }
예제 #6
0
    protected void divReleasebtnOk_Click(object sender, EventArgs e)
    {
        int rowscount = gvRelease.Rows.Count;

        for (int i = 0; i < rowscount; i++)
        {
            CheckBox chk      = (CheckBox)gvRelease.Rows[i].FindControl("chkRelease");
            Label    lblmonth = (Label)gvRelease.Rows[i].FindControl("lblMonthNumber");
            Label    lblyear  = (Label)gvRelease.Rows[i].FindControl("lblReleaseYear");

            if (chk.Checked)
            {
                BLL_SCM_Report.SCMReportRealeaseResponseToShip(Convert.ToInt32(Session["userid"].ToString()), Convert.ToInt32(lblyear.Text), Convert.ToInt32(lblmonth.Text));
            }
        }


        string msgDivReleaseHide = string.Format("hideModal('divRelease');");

        ScriptManager.RegisterStartupScript(Page, Page.GetType(), "msgDivReleaseHide", msgDivReleaseHide, true);

        BindSCMResponseSearch();

        UpdPnlFilter.Update();
        UpdPnlGrid.Update();
    }
    protected void onDelete(object source, CommandEventArgs e)
    {
        int retval = BLL_FBM_Report.FBM_READ_ACCESS_RIGHT_REMOVE(Convert.ToInt32(e.CommandArgument.ToString()), Convert.ToInt32(Session["USERID"].ToString()));

        BindFBMAccessRight();
        UpdPnlGrid.Update();
    }
예제 #8
0
    protected void btnClearFilter_Click(object sender, EventArgs e)
    {
        ViewState["OverDueSearchFlage"] = null;

        ViewState["SORTDIRECTION"] = null;
        ViewState["SORTBYCOLOUMN"] = null;

        ViewState["ucfJobIDFilterType"] = null;
        ViewState["Jobid"] = null;

        DDLFleet.SelectedValue = "0";
        BindVesselDDL();

        txtFromDate.Text   = "";
        txtToDate.Text     = "";
        txtActFrmDate.Text = "";
        txtActToDate.Text  = "";

        DDLVessel.ClearSelection();

        ddlFunction.ClearSelection();
        chkCMS.Checked            = false;
        chkCritical.Checked       = false;
        chkAdvSafetyAlarm.Checked = false;
        chkAdvCalibration.Checked = false;
        ddlSystem_location.ClearSelection();
        ucf_DDLRank.ClearSelection();
        ddlSubSystem_location.ClearSelection();

        // rbtDueType.SelectedValue = "0";
        rbtDueType.Items[0].Selected = true;
        rbtDueType.Items[1].Selected = true;
        rbtnJobTypes.SelectedValue   = "PMS";
        txtSearchJobTitle.Text       = "";
        txtFromDate.Enabled          = false;
        txtToDate.Enabled            = false;

        rbtnMRA.SelectedValue         = "ALL";
        rbtnRASubmitted.SelectedValue = "ALL";

        BindJobStatus();
        UpdPnlFilter.Update();
        UpdPnlGrid.Update();
        UpdAdvFltr.Update();

        if (hfAdv.Value == "o")
        {
            String tgladvsearchClr = String.Format("toggleOnSearchClearFilter(advText,'" + hfAdv.Value + "');");
            ScriptManager.RegisterStartupScript(Page, Page.GetType(), "tgladvsearchClr", tgladvsearchClr, true);
        }
        else
        {
            String tgladvsearchClr1 = String.Format("toggleOnSearchClearFilter(advText,'" + hfAdv.Value + "');");
            ScriptManager.RegisterStartupScript(Page, Page.GetType(), "tgladvsearchClr1", tgladvsearchClr1, true);
        }
    }
예제 #9
0
    protected void btnRetrieve_Click(object sender, EventArgs e)
    {
        ucCustomPagerItems.isCountRecord = 1;
        string vesselcode = DDLVessel.SelectedValue.ToString();

        ViewState["VesselCode"] = DDLVessel.SelectedValue.ToString();

        BindSCMReport();
        UpdPnlGrid.Update();
    }
예제 #10
0
    protected void btnClear_Click(object sender, EventArgs e)
    {
        ViewState["SORTDIRECTION"] = null;
        ViewState["SORTBYCOLOUMN"] = null;

        txtSearchBy.Text = "";

        ddlPLocation.SelectedValue = "0";

        BindLocation();
        UpdPnlGrid.Update();
    }
    protected void btnRetrieve_Click(object sender, EventArgs e)
    {
        ucCustomPagerItems.isCountRecord = 1;
        string vesselcode = DDLVessel.SelectedValue.ToString();

        ViewState["VesselCode"] = DDLVessel.SelectedValue.ToString();

        ViewState["DeptCode"] = DDLOfficeDept.SelectedValue.ToString();

        BindSCMIssueAssignmentSearch();
        UpdPnlGrid.Update();
    }
예제 #12
0
    protected void divResponsebtnResponse_Click(object sender, EventArgs e)
    {
        BLL_SCM_Report.SCMReportOfficeResponseSave(Convert.ToInt32(Session["userid"].ToString()), Convert.ToInt32(ViewState["ResponseID"].ToString()), divResponsetxtOfficeResponse.Text);

        string msgDivResponseHide = string.Format("hideModal('divResponse');");

        ScriptManager.RegisterStartupScript(Page, Page.GetType(), "msgDivResponseHide", msgDivResponseHide, true);

        BindSCMResponseSearch();

        UpdPnlFilter.Update();
        UpdPnlGrid.Update();
    }
    protected void btnClear_Click(object sender, EventArgs e)
    {
        ViewState["SORTDIRECTION"] = null;
        ViewState["SORTBYCOLOUMN"] = null;

        txtSearchBy.Text = "";

        ddlRank.SelectedValue         = "0";
        ddlRankCategory.SelectedValue = "0";

        BindProcedureRead();
        UpdPnlGrid.Update();
    }
    protected void optDepartment_OnSelectedIndexChanged(object sender, EventArgs e)
    {
        GridViewRow gvr = (GridViewRow)((RadioButtonList)sender).Parent.Parent;

        IssueAssignToDepartment(((RadioButtonList)gvr.FindControl("optDepartment")).SelectedValue, ((Label)gvr.FindControl("lblSCMTab")).Text, ((Label)gvr.FindControl("lblResponseID")).Text
                                , ((Label)gvr.FindControl("lblTabIssueID")).Text
                                , ((Label)gvr.FindControl("lblVesselID")).Text, ((Label)gvr.FindControl("lblLink")).Text);


        BindSCMIssueAssignmentSearch();

        UpdPnlGrid.Update();
    }
예제 #15
0
    protected void btnClearFilter_Click(object sender, EventArgs e)
    {
        ViewState["SORTDIRECTION"] = null;
        ViewState["SORTBYCOLOUMN"] = null;

        DDLOfficeDept.SelectedValue = "0";


        txtFromDate.Text = "";
        txtToDate.Text   = "";

        BindFBMReport();
        UpdPnlGrid.Update();
    }
예제 #16
0
    protected void btnClearFilter_Click(object sender, EventArgs e)
    {
        ViewState["VesselCode"]    = 0;
        ViewState["SORTDIRECTION"] = null;
        ViewState["SORTBYCOLOUMN"] = null;

        BindFleetDLL();
        BindVesselDDL();

        txtFromDate.Text = "";
        txtToDate.Text   = "";

        BindSCMReport();
        UpdPnlGrid.Update();
    }
예제 #17
0
 protected void btnRetrieve_Click(object sender, EventArgs e)
 {
     try
     {
         ucCustomPagerItems.isCountRecord = 1;
         BindRuningHours();
         UpdPnlGrid.Update();
     }
     catch (Exception ex)
     {
         UDFLib.WriteExceptionLog(ex);
         string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');";
         ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true);
     }
 }
예제 #18
0
    protected void DDLPrimaryCategory_SelectedIndexChanged(object sender, EventArgs e)
    {
        DataTable dtSecondryCategory = BLL_FBM_Report.FBMGetSystemParameterList(DDLPrimaryCategory.SelectedValue.ToString(), "", null);

        DDLSecondryCategory.Items.Clear();
        DDLSecondryCategory.DataSource     = dtSecondryCategory;
        DDLSecondryCategory.DataTextField  = "NAME";
        DDLSecondryCategory.DataValueField = "CODE";
        DDLSecondryCategory.DataBind();
        ListItem li = new ListItem("--SELECT ALL--", "0");

        DDLSecondryCategory.Items.Insert(0, li);

        BindFBMReport();
        UpdPnlGrid.Update();
    }
예제 #19
0
    protected void btnJobsHistory_Click(object sender, EventArgs e)
    {
        try
        {
            ViewState["Qflag"] = "H";

            BindJobStatus();
            UpdPnlGrid.Update();
        }
        catch (Exception ex)
        {
            UDFLib.WriteExceptionLog(ex);
            string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');";
            ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true);
        }
    }
예제 #20
0
    protected void btnClearFilter_Click(object sender, ImageClickEventArgs e)
    {
        ViewState["SORTDIRECTION"] = null;
        ViewState["SORTBYCOLOUMN"] = null;

        //txtFromDate.Text = DateTime.Today.AddDays(-7).ToString("dd-MM-yyyy");
        //txtToDate.Text = DateTime.Now.Date.ToString("dd-MM-yyyy");


        FillDDL();
        BindVesselDDL();
        DDLDrillType.SelectedValue = "0";

        BindVesselsDrillReport();

        UpdPnlGrid.Update();
    }
    protected void chkAccess_CheckedChanged(object sender, EventArgs e)
    {
        CheckBox    chkAccess = (sender as CheckBox);
        GridViewRow row       = chkAccess.NamingContainer as GridViewRow;

        if (((CheckBox)row.FindControl("chkAccess")).Checked == true)
        {
            int retVal = BLL_QMSDB_ProcedureSection.InsertReadMandatory(UDFLib.ConvertIntegerToNull(((Label)row.FindControl("lblFolderID")).Text)
                                                                        , UDFLib.ConvertIntegerToNull(((Label)row.FindControl("lblRankID")).Text)
                                                                        , Convert.ToInt32(Session["USERID"])
                                                                        , ((CheckBox)row.FindControl("chkAccess")).Checked == true ? 1 : 0);

            BindProcedureRead();

            UpdPnlGrid.Update();
        }
    }
    protected void lnkUnChekAll_Click(object sender, EventArgs e)
    {
        int rowscount = gvIssueAssign.Rows.Count;

        for (int i = 0; i < rowscount; i++)
        {
            CheckBox chk       = (CheckBox)gvIssueAssign.Rows[i].FindControl("ChkSMSReview");
            Label    lblDeptID = (Label)gvIssueAssign.Rows[i].FindControl("lblDeptID");

            /* If Department is assign then only check box should De select*/
            if (lblDeptID.Text != "")
            {
                chk.Checked = false;
            }
        }

        UpdPnlGrid.Update();
    }
예제 #23
0
    protected void DDLOfficeDept_SelectedIndexChanged(object sender, EventArgs e)
    {
        FillDDLPrimaryCategory();


        if (DDLOfficeDept.SelectedValue != "0")
        {
            ViewState["DeptID"] = DDLOfficeDept.SelectedValue;
        }
        else
        {
            ViewState["DeptID"] = "0";
        }



        BindFBMReport();
        UpdPnlGrid.Update();
    }
예제 #24
0
    protected void btnCurrentMonth_Click(object sender, EventArgs e)
    {
        try
        {
            btnOverDue.BackColor      = System.Drawing.ColorTranslator.FromHtml("");
            btn7days.BackColor        = System.Drawing.ColorTranslator.FromHtml("");
            btnCurrentMonth.BackColor = System.Drawing.ColorTranslator.FromHtml("#D8F6CE");

            ViewState["OverDueSearchFlage"] = "M";
            RHDone = 0;
            BindJobStatus();
            UpdPnlGrid.Update();
        }
        catch (Exception ex)
        {
            UDFLib.WriteExceptionLog(ex);
            string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');";
            ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true);
        }
    }
    /// <summary>
    /// Bind all vetting Questionnaire
    /// </summary>
    public void BindQuestionnaire()
    {
        try
        {
            BLL_VET_Questionnaire objBLLQuest = new BLL_VET_Questionnaire();
            DataSet ds            = new DataSet();
            int     rowcount      = ucCustomPagerItems.isCountRecord;
            string  sortbycoloumn = (ViewState["SORTBYCOLOUMN"] == null) ? null : (ViewState["SORTBYCOLOUMN"].ToString());
            int?    sortdirection = null; if (ViewState["SORTDIRECTION"] != null)
            {
                sortdirection = Int32.Parse(ViewState["SORTDIRECTION"].ToString());
            }

            ds = objBLLQuest.VET_Get_Questionnaire(UDFLib.ConvertIntegerToNull(DDLModule.SelectedValue), DDLVeseelType.SelectedValues, DDLVetType.SelectedValues, DDLStatus.SelectedValues, txtNumber.Text != "" ? txtNumber.Text.Trim() : null, txtVersion.Text != "" ? txtVersion.Text.Trim() : null, txtQuestionnaire.Text != "" ? txtQuestionnaire.Text.Trim() : null, sortbycoloumn, sortdirection, ucCustomPagerItems.CurrentPageIndex, ucCustomPagerItems.PageSize, ref rowcount);

            if (ucCustomPagerItems.isCountRecord == 1)
            {
                ucCustomPagerItems.CountTotalRec = rowcount.ToString();
                ucCustomPagerItems.BuildPager();
            }

            gvQuestionnaire.DataSource = ds.Tables[0];
            gvQuestionnaire.DataBind();
            if (ds.Tables[0].Rows.Count > 0)
            {
                btnExport.Enabled = true;
            }
            else
            {
                btnExport.Enabled = false;
            }
            UpdPnlGrid.Update();
            UpdPnlFilter.Update();
        }
        catch (Exception ex)
        {
            UDFLib.WriteExceptionLog(ex);
            string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');";
            ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true);
        }
    }
    protected void chkAccess_CheckedChanged(object sender, EventArgs e)
    {
        try
        {
            CheckBox    chkAccess = (sender as CheckBox);
            GridViewRow row       = chkAccess.NamingContainer as GridViewRow;

            int retVal = BLL_FBM_Report.FBM_READ_ACCESS_RIGHT_SAVE(UDFLib.ConvertIntegerToNull(((Label)row.FindControl("lblID")).Text)
                                                                   , UDFLib.ConvertIntegerToNull(((Label)row.FindControl("lblRankID")).Text)
                                                                   , Convert.ToInt32(Session["USERID"])
                                                                   , ((CheckBox)row.FindControl("chkAccess")).Checked == true ? 1 : 0);

            BindFBMAccessRight();

            UpdPnlGrid.Update();
        }
        catch (Exception ex)
        {
            UDFLib.WriteExceptionLog(ex);
        }
    }
예제 #27
0
    /// <summary>
    /// display access rights
    /// </summary>
    public void Bind_AccessRightsReport()
    {
        try
        {
            DataSet ds            = new DataSet();
            int     rowcount      = ucCustomPagerItems.isCountRecord;
            string  sortbycoloumn = (ViewState["SORTBYCOLOUMN"] == null) ? null : (ViewState["SORTBYCOLOUMN"].ToString());
            int?    sortdirection = null; if (ViewState["SORTDIRECTION"] != null)
            {
                sortdirection = Int32.Parse(ViewState["SORTDIRECTION"].ToString());
            }

            ds = objMenuBLL.INF_Get_AccessRightsReport(DDLCompany.SelectedValues, DDLMenu.SelectedValues, DDLDepartment.SelectedValues, DDLSubMenu.SelectedValues, DDLUser.SelectedValues, DDLPageName.SelectedValues, sortbycoloumn, sortdirection, ucCustomPagerItems.CurrentPageIndex, ucCustomPagerItems.PageSize, ref rowcount);

            if (ucCustomPagerItems.isCountRecord == 1)
            {
                ucCustomPagerItems.CountTotalRec = rowcount.ToString();
                ucCustomPagerItems.BuildPager();
            }
            gvAccessRightsReport.DataSource = ds.Tables[0];
            gvAccessRightsReport.DataBind();
            if (ds.Tables[0].Rows.Count > 0)
            {
                btnExport.Enabled = true;
            }
            else
            {
                btnExport.Enabled = false;
            }

            UpdPnlGrid.Update();
        }
        catch (Exception ex)
        {
            UDFLib.WriteExceptionLog(ex);
            string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');";
            ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true);
        }
    }
예제 #28
0
    protected void divResponsebtnModifyDept_Click(object sender, EventArgs e)
    {
        int?deptid = null;

        if (DivResponseDDLDeptpartment.SelectedValue != "0")
        {
            deptid = Convert.ToInt32(DivResponseDDLDeptpartment.SelectedValue.ToString());
        }

        BLL_SCM_Report.SCMReportOfficeDepartmentUpdate(Convert.ToInt32(Session["userid"].ToString()), Convert.ToInt32(ViewState["ResponseID"].ToString()), deptid);


        string msgDivResponseHide = string.Format("hideModal('divResponse');");

        ScriptManager.RegisterStartupScript(Page, Page.GetType(), "msgDivResponseHide", msgDivResponseHide, true);


        BindSCMResponseSearch();

        UpdPnlFilter.Update();
        UpdPnlGrid.Update();
    }
예제 #29
0
    protected void optMsgType_SelectedIndexChanged(object sender, EventArgs e)
    {
        if ((optMsgType.SelectedValue == "SENT"))
        {
            DDLOfficeDept.SelectedValue = "0";
            ViewState["DeptID"]         = "0";
        }
        else if ((optMsgType.SelectedValue == "PENDINGAPPROVAL"))
        {
            DDLOfficeDept.SelectedValue = "0";
            ViewState["DeptID"]         = "0";
        }
        else
        {
            DDLOfficeDept.SelectedValue = ViewState["CurrDeptID"].ToString();
            ViewState["DeptID"]         = ViewState["CurrDeptID"].ToString();
        }

        FillDDLPrimaryCategory();

        BindFBMReport();
        UpdPnlGrid.Update();
    }
예제 #30
0
 protected void btnRetrieve_Click(object sender, EventArgs e)
 {
     try
     {
         BindJobStatus();
         UpdPnlGrid.Update();
         if (hfAdv.Value == "o")
         {
             String tgladvsearch = String.Format("toggleOnSearchClearFilter(advText,'" + hfAdv.Value + "');");
             ScriptManager.RegisterStartupScript(Page, Page.GetType(), "tgladvsearch", tgladvsearch, true);
         }
         else
         {
             String tgladvsearch1 = String.Format("toggleOnSearchClearFilter(advText,'" + hfAdv.Value + "');");
             ScriptManager.RegisterStartupScript(Page, Page.GetType(), "tgladvsearch1", tgladvsearch1, true);
         }
     }
     catch (Exception ex)
     {
         UDFLib.WriteExceptionLog(ex);
         string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');";
         ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true);
     }
 }