コード例 #1
0
ファイル: SalesLine.cs プロジェクト: anthonied/LiquidPastel
        private void cmdFromulaFinder_Click(object sender, EventArgs e)
        {
            Cursor = System.Windows.Forms.Cursors.WaitCursor;
            if (Global.bUseQuantityMeasure)
            {
                using (Solsage_Process_Management_System.Finder.MeasureZoom frmMeasureZoom = new Solsage_Process_Management_System.Finder.MeasureZoom())
                {
                    if (frmMeasureZoom.ShowDialog() == DialogResult.OK)
                    {
                        txtUnit.Text = frmMeasureZoom.sUnit;
                        CalcScale();
                    }
                }
            }
            else
            {
                using (Solsage_Process_Management_System.Finder.RuleZoom frmRuleZoom = new Solsage_Process_Management_System.Finder.RuleZoom())
                {
                    if (frmRuleZoom.ShowDialog() == DialogResult.OK)
                    {
                        if (frmRuleZoom.sRuleID != "")
                        {
                            txtUnitFormula.Text = frmRuleZoom.sRuleNameReturn;
                            txtLineRuleID.Text = frmRuleZoom.sRuleID;
                            txtUnit.Text = frmRuleZoom.sRuleUnit;

                            ((Documents.SalesOrder)(this.Parent.Parent.Parent.Parent)).addTotals();
                        }
                    }
                }
            }

            Cursor = System.Windows.Forms.Cursors.Default;
        }
コード例 #2
0
        private void cmdDefaultRule_Click(object sender, EventArgs e)
        {
            Cursor = System.Windows.Forms.Cursors.WaitCursor;
            using (Solsage_Process_Management_System.Finder.RuleZoom frmRuleZoom = new Solsage_Process_Management_System.Finder.RuleZoom())
            {
                if (frmRuleZoom.ShowDialog() == DialogResult.OK)
                {
                    if (frmRuleZoom.sRuleID != "")
                    {
                        txtDefaultRule.Text = frmRuleZoom.sRuleNameReturn;
                        txtDefaultRuleID.Text = frmRuleZoom.sRuleID;
                    }
                }
            }

            Cursor = System.Windows.Forms.Cursors.Default;
        }
コード例 #3
0
ファイル: RuleSetup.cs プロジェクト: anthonied/LiquidPastel
        private void btnSearchRules_Click(object sender, EventArgs e)
        {
            Cursor = System.Windows.Forms.Cursors.WaitCursor;
            using (Solsage_Process_Management_System.Finder.RuleZoom frmRuleZoom = new Solsage_Process_Management_System.Finder.RuleZoom())
            {
                if (frmRuleZoom.ShowDialog() == DialogResult.OK)
                {
                    if (frmRuleZoom.sRuleID != "")
                    {
                        LoadRule(frmRuleZoom.sRuleID);
                    }
                }
            }

            Cursor = System.Windows.Forms.Cursors.Default;
        }