private void simpleButtonTinhGia_Click(object sender, EventArgs e) { int tuthang = Int32.Parse(spinEditTuThang.EditValue.ToString()); int denthang = Int32.Parse(spinEditDenThang.EditValue.ToString()); DevExpress.XtraEditors.XtraForm f = new GiaVT(tuthang, denthang, radioGroupPP.SelectedIndex, makho); f.MdiParent = this.MdiParent; f.Show(); }
private void simpleButtonTinhGia_Click(object sender, EventArgs e) { int tuthang = Int32.Parse(spinEditTuThang.EditValue.ToString()); int denthang = Int32.Parse(spinEditDenThang.EditValue.ToString()); if (KhoaSo(denthang)) { return; } if (grKhoApGia.EditValue == null || grKhoApGia.EditValue.ToString() == "") { XtraMessageBox.Show("Vui lòng chọn kho để tính giá xuất!", Config.GetValue("PackageName").ToString(), MessageBoxButtons.OK); return; } string s = GenCondition(); DevExpress.XtraEditors.XtraForm f = new GiaVT(tuthang, denthang, radioGroupPP.SelectedIndex, grKhoApGia.EditValue.ToString(), s, grTKCL.EditValue.ToString()); f.ShowDialog(); }