Beispiel #1
0
    public void btnAddSave_Click()
    {
        btnSave_Click();
        txtRowID.Text  = "";
        txtRemark.Text = "";
        CmbPrinter.setValue("");
        txtReportName.Text = "";
        txtReportTop.Clear();
        txtReportBottom.Clear();
        txtReportLeft.Clear();
        txtReportRight.Clear();
        txtPrintCount.Clear();
        txtReportName.Focus();
        chkDefault.Checked = false;
        RowSelectionModel row = this.GridPanel1.GetSelectionModel() as RowSelectionModel;

        row.ClearSelections();
    }
Beispiel #2
0
    protected void row_Click(object sender, DirectEventArgs e)
    {
        txtRowID.Text = e.ExtraParams["prt_ROWID"];
        CmbPrinter.setValue(e.ExtraParams["prt_PrinterCode"]);
        CmbPrinter.DisplayField    = e.ExtraParams["prt_PrinterCode"];
        CmbPrinter.ValueField      = e.ExtraParams["prt_PrinterName"];
        txtRemark.Text             = e.ExtraParams["prt_Remark"];
        CmbStat.SelectedItem.Value = e.ExtraParams["prt_STAT"];
        CMbSys.SelectedItem.Value  = e.ExtraParams["prt_Sys"];
        txtReportName.Text         = e.ExtraParams["prt_Report"];
        prt_PrinterCode.Text       = e.ExtraParams["prt_PrinterCode"];
        prt_PrinterName.Text       = e.ExtraParams["prt_PrinterName"];
        chkDefault.Checked         = e.ExtraParams["prt_IsDefault"].ToString() == "√" ? true : false;
        string top = txtReportTop.Text = e.ExtraParams["rc_rptTop"];

        if (string.IsNullOrEmpty(top))
        {
            txtReportTop.Clear();
        }
        else
        {
            txtReportTop.Text = top;
        }

        string bottom = txtReportBottom.Text = e.ExtraParams["rc_rptBottom"];

        if (string.IsNullOrEmpty(bottom))
        {
            txtReportBottom.Clear();
        }
        else
        {
            txtReportBottom.Text = bottom;
        }
        string left = txtReportLeft.Text = e.ExtraParams["rc_rptLeft"];

        if (string.IsNullOrEmpty(left))
        {
            txtReportLeft.Clear();
        }
        else
        {
            txtReportLeft.Text = left;
        }

        string right = txtReportRight.Text = e.ExtraParams["rc_rptRight"];

        if (string.IsNullOrEmpty(right))
        {
            txtReportRight.Clear();
        }
        else
        {
            txtReportRight.Text = right;
        }

        if (string.IsNullOrEmpty(e.ExtraParams["prt_PrintCount"]))
        {
            txtPrintCount.Clear();
        }
        else
        {
            txtPrintCount.Text = e.ExtraParams["prt_PrintCount"];
        }

        txtStat.Text   = e.ExtraParams["prt_STAT"];
        txtSys.Text    = e.ExtraParams["prt_Sys"];
        txtReport.Text = e.ExtraParams["prt_Report"];
        txtReportName.Focus();
    }