void ReleaseDesignerOutlets() { if (Password != null) { Password.Dispose(); Password = null; } if (SignImage != null) { SignImage.Dispose(); SignImage = null; } if (SignInButton != null) { SignInButton.Dispose(); SignInButton = null; } if (SignUpButton != null) { SignUpButton.Dispose(); SignUpButton = null; } if (UserName != null) { UserName.Dispose(); UserName = null; } }
/// <summary> /// 获取主键类型是整数的签名对象 /// </summary> /// <param name="id"></param> /// <param name="typeid"></param> /// <returns></returns> public static SignImage GetIntKeySign(int id, int typeid) { string strsql = "select top 1 * from SignImage where IntKey = '" + id + "' and TypeID = " + typeid + " order by CreateTime desc"; SignImage si = MsSqlMapperHepler.SqlWithParamsSingle <SignImage>(strsql, null, DBKeys.PRX); return(si); }
static ControlService() { string appdir = ConfigurationManager.AppSettings["ProWriteFontFile"]; if (appdir.IndexOf(@":") == -1) { appdir = Application.StartupPath + @"\" + appdir; } else { appdir = ConfigurationManager.AppSettings["ProWriteFontFile"]; } FontManager.Initialize(appdir); _libraryTree = new LibraryTree(); _signCombo = new SignRepositoryItemLookUpEdit(); _propertyGrid = new PropertyGridControl(); _effectTree = new EffectTreeControl(); _toolBox = new ToolBoxControl(); _timeSliceControl = new TimeSliceGroupControl(); _signImage = new SignImage(); _signStatus = new SignStatus(); _barButtonPosition = new BarButtonItem(); //_barButtonPosition.CategoryGuid = new System.Guid("77795bb7-9bc5-4dd2-a297-cc758682e23d"); //_barButtonPosition.Id = 0; //_barButtonPosition.Name = "siPosition"; _statusBar = new RibbonStatusBar(); _currentClip = new CurrentClip(); _spellChecker = new DevExpress.XtraSpellChecker.SpellChecker(); _signStorageIndicator = new SignStorageIndicator(); _pictureBox = new PictureEdit(); _pictureBox.Properties.ShowMenu = false; _pictureBox.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Zoom; if (_libraryTree != null) { _libraryTree.Controller.RemoveLibraryItemEvent += new EventHandler <RemoveLibraryEventArgs>(Controller_RemoveLibraryItemEvent); } _fonts = new List <PWFont>(); _fontsBitMap = new List <PWFont>(); _fontsTrueType = new List <PWFont>(); spellCheckTask = Task.Create((p) => { CultureInfo engCulture = new CultureInfo("En-us"); dictionary = new SpellCheckerISpellDictionary(DemoUtils.GetRelativePath("american.xlg"), DemoUtils.GetRelativePath("english.aff"), engCulture); dictionary.AlphabetPath = DemoUtils.GetRelativePath("EnglishAlphabet.txt"); customDictorary = new SpellCheckerCustomDictionary(); customDictorary.Culture = engCulture; SpellCheckerList.Load(); customDictorary.AddWords(ServiceManager.Get <SpellCheckerList>()); }); }
// // GET: /EnrollProtocol/ public ActionResult EnrollProtocol(string id) { EnrollProtocolViewModel model = new EnrollProtocolViewModel(); string apid = id; SignImage si = CommonData.GetStringKeySign(apid, 0); SignImage si_jbr = CommonData.GetStringKeySign(apid, 1); model.apid = apid; model.si = si; model.si_jbr = si_jbr; model.EnrollList = EnrollData.GetEnrollPrintByApid(apid); model.ap = AppointmentData.GetOnevw_AppointmentByID(apid); model.bill = EnrollData.GetOneBillConfig(); return(View(model)); }
/// <summary> /// 字符串主键签名 /// </summary> /// <returns></returns> public ActionResult SaveStringKeySign() { AjaxStatusModel ajax = new AjaxStatusModel(); ajax.status = EnumAjaxStatus.Error; ajax.msg = "签名失败!"; string keyid = Request["id"].ToString(); //获取主键值 int typeid = int.Parse(Request["typeid"].ToString()); //获取类型,1入学协议,2转让协议 string imagedata = Request["imagedata"]; SignImage si = new SignImage(); si.StringKey = keyid; si.TypeID = typeid; si.ImageData = imagedata; si.CreateTime = DateTime.Now; int res = CommonData.SaveSign(si); if (res > 0) { ajax.status = EnumAjaxStatus.Success; ajax.msg = "签名成功!"; } return(Json(ajax)); }
/// <summary> /// 保存签名数据 /// </summary> /// <returns></returns> public static int SaveSign(SignImage si) { return(MsSqlMapperHepler.Insert(si, DBKeys.PRX)); }