예제 #1
0
        private void b_ok_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(glookup_lc.EditValue.ToString()))
            {
                glookup_lc.ErrorImageOptions.Alignment = ErrorIconAlignment.MiddleRight;
                glookup_lc.ErrorText = "请先选择灵车!";
                return;
            }

            string s_si001 = glookup_lc.EditValue.ToString();   //灵车编号

            if (SALESTYPE == "0")                               //火化业务
            {
                int result = FireAction.FireSales_07(AC001,
                                                     s_si001,
                                                     Envior.cur_userId
                                                     );
                if (result > 0)
                {
                    DialogResult = DialogResult.OK;
                    this.Close();
                }
            }
            else if (SALESTYPE == "1")                          //临时性销售
            {
                DialogResult            = DialogResult.OK;
                this.swapdata["ITEMID"] = s_si001;
                this.Close();
            }
        }
예제 #2
0
        private void B_ok_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(glookup_lc.EditValue.ToString()))
            {
                glookup_lc.ErrorImageOptions.Alignment = ErrorIconAlignment.MiddleRight;
                glookup_lc.ErrorText = "请先选择灵车!";
                return;
            }

            string s_si001 = glookup_lc.EditValue.ToString();                 //灵车编号

            int result = FireAction.FireSales_07(AC001,
                                                 s_si001,
                                                 Envior.cur_userId
                                                 );

            if (result > 0)
            {
                DialogResult = DialogResult.OK;
                this.Dispose();
            }
        }