コード例 #1
0
    public void btnCancel_click()
    {
        if (string.IsNullOrEmpty(txtRowID.Text))
        {
            X.Msg.Alert("status", " Please choose to delete lines", new JFunction()
            {
                Fn = "textResult"
            }).Show();
            return;
        }

        bool b = dal.FactoryDAL(PageHelper.ConnectionStrings, "FW_BasicData_PRINTER_SP", new List <IFields>()
        {
            dal.CreateIFields()
            .Append("Option", "delete")
            .Append("prt_ROWID", txtRowID.Text)
            .Append("prt_Modifier", FSecurityHelper.CurrentUserDataGET()[0])
        }).Update();

        BindGrid();
        txtRowID.Text   = "";
        Textfield2.Text = "";
        Textfield3.Text = "";
        RowSelectionModel row = this.GridPanel1.GetSelectionModel() as RowSelectionModel;

        row.SelectFirstRow();
    }
コード例 #2
0
    public void btnCancel_click()
    {
        if (string.IsNullOrEmpty(txtRowID.Text))
        {
            X.Msg.Alert("status", " Please choose to delete lines").Show();
            return;
        }
        bool b = dal.FactoryDAL(PageHelper.ConnectionStrings, "FW_USER_SP", new List <IFields>()
        {
            dal.CreateIFields()
            .Append("Option", "DeleteUser")
            .Append("RowID", txtRowID.Text)
            .Append("Modifier", FSecurityHelper.CurrentUserDataGET()[0])
        }).Update();

        if (b)
        {
            GridBind("");
            RowSelectionModel row = this.gridpanel.GetSelectionModel() as RowSelectionModel;
            row.SelectFirstRow();
        }
        else
        {
            X.Msg.Alert("status", " Delete failed ").Show();
        }
    }
コード例 #3
0
 public void btnCancel_click()
 {
     if (string.IsNullOrEmpty(txtRowID.Text))
     {
         X.Msg.Alert("status", " Please choose to delete lines", new JFunction()
         {
             Fn = "textResult"
         }).Show();
     }
     else
     {
         bool b = dal.FactoryDAL(PageHelper.ConnectionStrings, "FW_BasicData_Report_SP", new List <IFields>()
         {
             dal.CreateIFields()
             .Append("Option", "Delete")
             .Append("rp_ROWID", txtRowID.Text)
             .Append("rp_Modifier", FSecurityHelper.CurrentUserDataGET()[0])
         }).Update();
         if (b)
         {
             cmbStat.Text  = "";
             txtRowID.Text = "";
             GridBind("");
             RowSelectionModel row = this.GridPanel.GetSelectionModel() as RowSelectionModel;
             row.SelectFirstRow();
         }
         else
         {
             X.Msg.Alert("status", " Delete failed ", new JFunction()
             {
                 Fn = "textResult"
             }).Show();
         }
     }
 }
コード例 #4
0
    public void btnCancel_Click()
    {
        if (string.IsNullOrEmpty(txtRowID.Text))
        {
            X.Msg.Alert("status", " Please choose to delete lines", new JFunction()
            {
                Fn = "textResult"
            }).Show();
            return;
        }
        bool b = dal.FactoryDAL(PageHelper.ConnectionStrings, "FW_BasicData_Print_SP", new List <IFields>()
        {
            dal.CreateIFields()
            .Append("Option", "Delete")
            .Append("prt_ROWID", txtRowID.Text)
            .Append("prt_Modifier", FSecurityHelper.CurrentUserDataGET()[0])
        }).Update();

        if (b)
        {
            DataBinder("");
            txtRowID.Text        = "";
            txtRemark.Text       = "";
            txtReportName.Text   = "";
            txtReportTop.Text    = "";
            txtReportBottom.Text = "";
            txtReportLeft.Text   = "";
            txtReportRight.Text  = "";
            txtPrintCount.Text   = "";
            txtReportName.Focus();
            RowSelectionModel row = this.GridPanel1.GetSelectionModel() as RowSelectionModel;
            row.SelectFirstRow();
        }
        else
        {
            X.Msg.Alert("status", " Delete failed ", new JFunction()
            {
                Fn = "textResult"
            }).Show();
        }
    }