protected void btnAdd_Click(object sender, EventArgs e) { BG_ReimAppendix ra = new BG_ReimAppendix(); ra.ARID = common.IntSafeConvert(arid); ra.ARContent = getCbCatalog(); ra.ARType = "培训"; ra.ARTime = Convert.ToDateTime(Session["time"]); if (BGReimAppendixManager.AddAccessories(ra)) { lblMResult.Text = "* 其它费用"; } else { lblMResult.Text = "* 操作失败、请检查数据后重试"; } }
protected void btnAdd_Click(object sender, EventArgs e) { BG_ReimAppendix ra = new BG_ReimAppendix(); ra.ARID = common.IntSafeConvert(arid); ra.ARContent = getCbCatalog(); ra.ARType = "资料印制"; ra.ARTime = Convert.ToDateTime(Session["time"]); string[] str = ra.ARContent.Split('☆'); decimal total = ParToDecimal.ParToDel(Session["money"].ToString()); if (BGReimAppendixManager.AddAccessories(ra)) { lblMResult.Text = "* 添加成功"; } else { lblMResult.Text = "* 操作失败、请检查数据后重试"; } //if (total > Convert.ToDecimal(str[32])) //{ // lblMResult.Text = "* 所填金额不能大于分配金额"; // return; //} //else //{ // if (BGReimAppendixManager.AddAccessories(ra)) // { // lblMResult.Text = "* 添加成功"; // } // else // { // lblMResult.Text = "* 操作失败、请检查数据后重试"; // } //} }
protected void btnAdd_Click(object sender, EventArgs e) { BG_ReimAppendix ra = new BG_ReimAppendix(); ra.ARID = common.IntSafeConvert(arid); ra.ARContent = getCbCatalog(); ra.ARType = "工作会议"; string[] str = ra.ARContent.Split('☆'); ra.ARTime = Convert.ToDateTime(Session["time"]); //decimal total = Convert.ToDecimal(ChineseToNumber.WordToNumber(TextBox9.Text.Trim())); if (BGReimAppendixManager.AddAccessories(ra)) { lblMResult.Text = "* 添加成功"; } else { lblMResult.Text = "* 操作失败、请检查数据后重试"; } //if (total > Convert.ToDecimal(str[8])) //{ // lblMResult.Text = "* 所填金额不能大于分配金额"; // return; //} //else //{ // if (BGReimAppendixManager.AddAccessories(ra)) // { // lblMResult.Text = "* 添加成功"; // } // else // { // lblMResult.Text = "* 操作失败、请检查数据后重试"; // } //} }