protected void AddNewParamToObject() { if (hidformmode.Value == "mnew") { ObjectRef = SaveObject(); } UserData = new UserData(); UserData.CheckSession(); wsSky wsd; wsd = new wsSky(); otAnyActionResp wssod; ServicePointManager.Expect100Continue = false; wsd.UnsafeAuthenticatedConnectionSharing = true; wsd.Credentials = UserData.NetCred; wsd.Timeout = 2000000; otAnyActionData AnyActionData = AnyActionDataForAddNewParamToObject(ObjectRef); wssod = wsd.fAnyAction(UserData.UserRef, AnyActionData); otAnyActionParam[] aap = wssod.prAnyActionParams; string objref = ApplTools.AnyActionDataValue(aap, "vRef"); Response.Redirect("TemplatePage.aspx?objref=" + objref); }
protected string SaveObject() { UserData = new UserData(); UserData.CheckSession(); wsSky wsd; wsd = new wsSky(); otAnyActionResp wssod; ServicePointManager.Expect100Continue = false; wsd.UnsafeAuthenticatedConnectionSharing = true; wsd.Credentials = UserData.NetCred; wsd.Timeout = 2000000; otAnyActionData AnyActionData = AnyActionDataForSaveObjectAttrs(ObjectRef); wssod = wsd.fAnyAction(UserData.UserRef, AnyActionData); otAnyActionParam[] aap = wssod.prAnyActionParams; // - параметры пока сохраняются поштучно AnyActionData = AnyActionDataForSaveObjectContent(ObjectRef); //wssod = wsd.fAnyAction(UserData.UserRef, AnyActionData); //aap = wssod.prAnyActionParams; string objref = ApplTools.AnyActionDataValue(aap, "vRef"); return(objref); }
protected void SaveObject() { UserData = new UserData(); UserData.CheckSession(); wsSky wsd; wsd = new wsSky(); otAnyActionResp wssod; ServicePointManager.Expect100Continue = false; wsd.UnsafeAuthenticatedConnectionSharing = true; wsd.Credentials = UserData.NetCred; wsd.Timeout = 2000000; otAnyActionData AnyActionData = AnyActionDataForSaveObject(ObjectRef); wssod = wsd.fAnyAction(UserData.UserRef, AnyActionData); if (wssod.prRespHeader.prRespResult < 0) { (Master.FindControl("lMasterTextTop") as Label).Text = wssod.prRespHeader.prRespMessage; } else { otAnyActionParam[] aap = wssod.prAnyActionParams; string objref = ApplTools.AnyActionDataValue(aap, "prObjectRef"); Response.Redirect("ParamPage.aspx?objref=" + objref); } }
protected void SaveNewService() { UserData = new UserData(); UserData.CheckSession(); wsSky wsd = UserData.NewWS(); otAnyActionResp wssod; otAnyActionData AnyActionData = AnyActionDataForNewService(); wssod = wsd.fAnyAction(UserData.UserRef, AnyActionData); //tb_SurName.Text = wssod.prAnyActionParams[0].prValue; otAnyActionParam[] aap = wssod.prAnyActionParams; string NewServiceRef = ApplTools.AnyActionDataValue(aap, "vServiceRef"); Response.Redirect("ServicePage.aspx?serref=" + NewServiceRef); }
private void CallWS(string UserRef) { wsSky wsd; wsd = new wsSky(); otAnyActionResp wssod; ServicePointManager.Expect100Continue = false; wsd.UnsafeAuthenticatedConnectionSharing = true; wsd.Credentials = UserData.NetCred; wsd.Timeout = 2000000; otAnyActionData AnyActionData = AnyActionDataForParamPage(); wssod = wsd.fAnyAction(UserRef, AnyActionData); (Master.FindControl("lMasterTextTop") as Label).Text = wssod.prRespHeader.prRespMessage; //tb_SurName.Text = wssod.prAnyActionParams[0].prValue; otAnyActionParam[] aap = wssod.prAnyActionParams; tb_ParamName.Text = ApplTools.AnyActionDataValue(aap, "prName"); tb_ParamCaption.Text = ApplTools.AnyActionDataValue(aap, "prCaption"); cbDataTypeList.SelectedValue = ApplTools.AnyActionDataValue(aap, "prDateTypeRef"); tb_ParamCreateUser.Text = ApplTools.AnyActionDataValue(aap, "prCreateUser"); tb_ParamCreateDate.Text = ApplTools.AnyActionDataValue(aap, "prCreateDate"); }
private void CallWS(string UserRef) { wsSky wsd; wsd = new wsSky(); otAnyActionResp wssod; ServicePointManager.Expect100Continue = false; wsd.UnsafeAuthenticatedConnectionSharing = true; wsd.Credentials = UserData.NetCred; wsd.Timeout = 2000000; otAnyActionData AnyActionData = AnyActionDataForPacientPage(); wssod = wsd.fAnyAction(UserRef, AnyActionData); (Master.FindControl("lMasterTextTop") as Label).Text = wssod.prRespHeader.prRespMessage; //tb_SurName.Text = wssod.prAnyActionParams[0].prValue; otAnyActionParam[] aap = wssod.prAnyActionParams; tb_SurName.Text = ApplTools.AnyActionDataValue(aap, "vSurName"); tb_PhoneNumber.Text = ApplTools.AnyActionDataValue(aap, "vPhoneNumber"); tb_FirstName.Text = ApplTools.AnyActionDataValue(aap, "vFirstName"); tb_EMail.Text = ApplTools.AnyActionDataValue(aap, "vEMail"); tb_FatherName.Text = ApplTools.AnyActionDataValue(aap, "vFatherName"); tb_CreateDate.Text = ApplTools.AnyActionDataValue(aap, "vCreateDate"); tb_DateBirth.Text = ApplTools.AnyActionDataValue(aap, "vDateBirth"); tb_CreateUser.Text = ApplTools.AnyActionDataValue(aap, "vCreateUser"); tb_Sex.Text = ApplTools.AnyActionDataValue(aap, "vSex"); tb_Source.Text = ApplTools.AnyActionDataValue(aap, "vSource"); tb_Passport.Text = ApplTools.AnyActionDataValue(aap, "vPassport"); tb_LastDate.Text = ApplTools.AnyActionDataValue(aap, "vLastDate"); tb_CardCode.Text = ApplTools.AnyActionDataValue(aap, "vCardCode"); tb_AddressReg.Text = ApplTools.AnyActionDataValue(aap, "vAddressReg"); tb_AddressHome.Text = ApplTools.AnyActionDataValue(aap, "vAddressHome"); tb_Comment.Text = ApplTools.AnyActionDataValue(aap, "vComment"); tb_BloodGroup.Text = ApplTools.AnyActionDataValue(aap, "vBloodGroup"); tb_BloodRezus.Text = ApplTools.AnyActionDataValue(aap, "vBloodRezus"); }