Пример #1
0
 public static string UpdateDetails(string busObj, string recId, CherwellBusinessObject newUser)
 {
     return(Global.CherwellConnection.UpdateBusinessObject(busObj, recId, newUser.ToXmlString()));
 }
Пример #2
0
        public static string CreateCherwellBusinessObject(string busObj, CherwellBusinessObject createObject)
        {
            var text = createObject.ToXmlString();

            return(Global.CherwellConnection.CreateBusinessObject(busObj, createObject.ToXmlString()));
        }
Пример #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Cache.SetCacheability(HttpCacheability.NoCache);
            Response.Cache.SetExpires(DateTime.Now);
            Response.Cache.SetNoServerCaching();
            Response.Cache.SetNoStore();

            _newUserRecordId = Request.QueryString["RECID"];

            Page.EnableViewState = true;
            if (Global.ConfirmLogin())
            {
                _newUser = new CherwellBusinessObject();


                if (string.IsNullOrEmpty(_newUserRecordId))
                {
                    Response.Redirect(Global.Redirect);
                }

                _newUser = Details.GetDetails("Customer - External", _newUserRecordId);

                var test = _newUser.ToXmlString();

                if (IsPostBack)
                {
                    return;
                }

                if (_newUser.FieldList.Fields[122].Value == "True")
                {
                    Response.Redirect("~/ApplicationCompleted.aspx?RECID=" + _newUserRecordId);
                }

                var natureOfBusiness =
                    Details.GetListCherwellBusinessObjects("Nature of Business", "Status", "Active", "Record");
                ddlNatureOfBusiness.Items.Clear();
                ddlNatureOfBusiness.Items.Add("");

                foreach (var item in natureOfBusiness)
                {
                    ddlNatureOfBusiness.Items.Add(item.FieldList.Fields[8].Value);
                }

                GetCustomerDetails();
                ChkPremisesLeased_CheckedChanged(null, null);

                if (_newUser.FieldList.Fields[117].Value != "False")
                {
                    return;
                }
                lblRegNumber.Text = "SA ID Number";
                txtReg1.Width     = 100;
                txtReg2.Visible   = false;
                txtReg2.Text      = string.Empty;
                txtReg3.Visible   = false;
                txtReg3.Text      = string.Empty;
                lblslash1.Visible = false;
                lblslash2.Visible = false;
            }
            else
            {
                Response.Redirect("~/LoadFailure.aspx?RECID=" + _newUserRecordId + "&PAGE=BusinessDetails.aspx");
            }
        }