Example #1
0
        protected void btnok_Click(object sender, EventArgs e)
        {
            try
            {
                var vUser = (NF.Framework.CurrentUser)HttpContext.Current.Session["CurrentUser"];

                DataTable dt = tmo_con.GetCustCon_End_List(ltlConNO.Text, ltlcustno.Text, "", "", "").Tables[0];
                if (dt.Rows.Count > 0)
                {
                    string msg = ltlConNO.Text + ",已重复提交,无法继续操作";
                    WebMsg.MessageBox(msg);
                }
                else
                {
                    var mod = new Mod_TMO_CON_END()
                    {
                        C_CUSTNO    = ltlcustno.Text,
                        C_CUSTNAME  = ltlcustname.Text,
                        C_SALEEMPID = vUser.Id,
                        C_REMARK    = txtremark.Text,
                        C_CONNO     = ltlConNO.Text,
                        C_AREA      = ltlarea.Text
                    };

                    if (tmo_con.InsertCustCon_End(mod))
                    {
                        Response.Write("<script>alert('提交成功');window.parent.document.getElementById('btncx').click();window.parent.close();</script>");
                    }
                }
            }
            catch (Exception ex)
            {
                WebMsg.MessageBox(ex.Message);
            }
        }
Example #2
0
 /// <summary>
 /// 插入客户合同终止信息
 /// </summary>
 /// <param name="mod"></param>
 /// <returns></returns>
 public bool InsertCustCon_End(Mod_TMO_CON_END mod)
 {
     return(dal.InsertCustCon_End(mod));
 }