/// <summary> /// 获得消费详细信息 /// </summary> /// <param name="paramMarkID"></param> private void GetConsumptionInfo(string paramMarkID) { try { DataTable tempDataTable = new BUCMS_ConsumptionDish().GetOrder(true, "MarkID", paramMarkID, false); groupControlDetail.Text = "此餐台详细消费项目------------当前餐台服务员:[" + tempDataTable.Rows[0]["服务员"].ToString() + "]"; this.gridControlItem.DataSource = tempDataTable; } catch (Exception ex) { throw ex; } }
/// <summary> /// 获得消费详细信息 /// </summary> /// <param name="paramMarkID"></param> private void GetConsumptionInfo(string paramMarkID) { try { DataTable tempDataTable = new BUCMS_ConsumptionDish().GetOrder(true, "MarkID", paramMarkID, false); if (tempDataTable.Rows[0]["菜品编号"].ToString() == string.Empty) { if (XtraMessageBox.Show("当前餐台暂未消费任何项,是否先增加消费", "是否要增加消费后再结账?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { frmDineRegister myfrmDineRegister = new frmDineRegister(this.BuffetControl); myfrmDineRegister.Owner = this; myfrmDineRegister.Show(); this.IsShown = false; } } this.gridControlItem.DataSource = tempDataTable; GetConsumptionRegModel(tempDataTable); FillConsumptionRegModelInfo(); } catch (Exception ex) { throw ex; } }