private void Frm_RegisterPay_Load(object sender, EventArgs e) { s_rc001 = this.swapdata["rc001"].ToString(); RC01 rc01 = unitOfWork1.GetObjectByKey <RC01>(s_rc001); if (rc01 != null) { txtEdit_rc001.EditValue = rc01.RC001; txtEdit_rc109.EditValue = rc01.RC109; //寄存证号 be_position.Text = RegAction.GetRegPosition(s_rc001); //寄存位置 bitprice = RegAction.GetRegPrice(s_rc001); //寄存单价 txtedit_price.EditValue = bitprice; txtEdit_rc003.EditValue = rc01.RC003; rg_rc002.EditValue = rc01.RC002; txtEdit_rc004.EditValue = rc01.RC004; txtEdit_rc303.EditValue = rc01.RC303; rg_rc202.EditValue = rc01.RC202; txtEdit_rc404.EditValue = rc01.RC404; op_rc001.Value = s_rc001; rc04Adapter.Fill(dt_rc04); gridControl1.DataSource = dt_rc04; comboBox1.Text = ""; } else { sb_ok.Enabled = false; XtraMessageBox.Show("数据未找到!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void Frm_RegOut_Load(object sender, EventArgs e) { s_rc001 = this.swapdata["rc001"].ToString(); RC01 rc01 = unitOfWork1.GetObjectByKey <RC01>(s_rc001); if (rc01 != null) { txtEdit_rc001.Text = rc01.RC001; txtEdit_rc109.Text = rc01.RC109; //寄存证号 be_position.Text = RegAction.GetRegPosition(s_rc001); //寄存位置 txtEdit_rc003.Text = rc01.RC003; txtEdit_rc303.EditValue = rc01.RC303; rg_rc002.EditValue = rc01.RC002; rg_rc202.EditValue = rc01.RC202; txtEdit_rc004.EditValue = rc01.RC004; txtEdit_rc404.EditValue = rc01.RC404; //寄存号位单价 price = RegAction.GetRegPrice(s_rc001); txtEdit_price.EditValue = price; txtEdit_rc150.EditValue = rc01.RC150; //寄存到期时间 int diff = RegAction.CalcOutDiffDays(s_rc001); int compare = string.Compare(rc01.RC150.ToString("yyyyMMdd"), MiscAction.GetServerTime().ToString("yyyyMMdd")); if (compare == 0) { checkEdit1.Enabled = false; txtEdit_nums.Enabled = false; } else if (compare > 0) //退费 { lc_1.Text = "剩余天数"; lc_2.Text = "应退费月数"; lc_3.Text = "退费金额"; isrefund = true; //txtEdit_nums.EditValue = Math.Round((diff * 1.0f) / 30, 0); //txtEdit_fee.EditValue = Convert.ToDecimal(Math.Round((diff * 1.0f) / 30, 0)) * price; txtEdit_nums.EditValue = 0; txtEdit_fee.EditValue = 0; } else { lc_1.Text = "过期天数"; lc_2.Text = "应补费月数"; lc_3.Text = "补费金额"; txtEdit_nums.EditValue = Math.Round((diff * 1.0f) / 30, 0); txtEdit_fee.EditValue = Convert.ToDecimal(Math.Round((diff * 1.0f) / 30, 0)) * price; } txtEdit_diff.EditValue = diff; } else { sb_ok.Enabled = false; XtraMessageBox.Show("数据未找到!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
/// <summary> /// 设置信息面板显示 /// </summary> private void SetActivePanel() { txtedit_ac003.EditValue = ac01.AC003; //逝者姓名 txtedit_ac004.EditValue = ac01.AC004; //年龄 rg_ac002.EditValue = ac01.AC002; //性别 txtedit_ac020.EditValue = ac01.AC020; //到达中心时间 txtedit_ac050.EditValue = ac01.AC050; //联系人 txtedit_ac051.EditValue = ac01.AC051; //电话 txtedit_ac052.Text = ac01.AC052; //与逝者关系 txtedit_ac006.EditValue = ac01.AC006; //骨灰处理方式 this.Parent.Text = "火化业务办理" + "【" + ac01.AC003 + "】" + "(" + ac01.AC001 + ")"; te_position.Text = FireAction.GetGuyPosition(s_ac001); te_gbt.Text = FireAction.GetGBT(s_ac001); txtedit_ac018.EditValue = ac01.AC018; txtedit_ac015.EditValue = ac01.AC015; te_hhl.Text = FireAction.GetHHL(s_ac001); txtedit_xxs.Text = FireAction.GetRestRoomList(s_ac001); //判断是否办理寄存业务 if (gridView1.LocateByValue("SA002", "08") >= 0) { te_pos.Text = RegAction.GetRegPosition(s_ac001); } else { te_pos.Text = ""; } decimal dec_yjs = decimal.Zero; decimal dec_wjs = decimal.Zero; for (int i = 0; i < gridView1.RowCount; i++) { if (gridView1.GetRowCellValue(i, "SA008").ToString() == "1") { dec_yjs += Convert.ToDecimal(gridView1.GetRowCellValue(i, "SA007")); } else { dec_wjs += Convert.ToDecimal(gridView1.GetRowCellValue(i, "SA007")); } } te_yjs.Text = dec_yjs.ToString("##,##0.00"); te_wjs.Text = dec_wjs.ToString("##,##0.00"); }
private void Frm_RegMove_Load(object sender, EventArgs e) { s_rc001 = this.swapdata["rc001"].ToString(); RC01 rc01 = unitOfWork1.GetObjectByKey <RC01>(s_rc001); if (rc01 != null) { txtEdit_rc001.Text = s_rc001; txtEdit_rc109.EditValue = rc01.RC109; txtEdit_rc003.EditValue = rc01.RC003; s_bitId_old = rc01.RC130; be_position.EditValue = RegAction.GetRegPosition(s_rc001); } else { sb_ok.Enabled = false; XtraMessageBox.Show("数据未找到!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error); } }