예제 #1
0
        private void b_ok_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(glookup_hh.EditValue.ToString()))
            {
                glookup_hh.ErrorImageOptions.Alignment = ErrorIconAlignment.MiddleRight;
                glookup_hh.ErrorText = "请先选择火化标准!";
                return;
            }
            if (dateEdit_so005.EditValue == null || string.IsNullOrEmpty(dateEdit_so005.EditValue.ToString()))
            {
                dateEdit_so005.ErrorImageOptions.Alignment = ErrorIconAlignment.MiddleRight;
                dateEdit_so005.ErrorText = "请输入火化时间!";
                return;
            }

            string   s_si001 = glookup_hh.EditValue.ToString();                //火化标准编号
            DateTime so005   = (DateTime)dateEdit_so005.EditValue;             //火化时间

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

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