public SasSpawnedProcessesTaskForm(SAS.Shared.AddIns.ISASTaskConsumer3 consumer)
        {
            InitializeComponent();

            // provide a handle to the SAS Enterprise Guide application
            this.Consumer = consumer;
        }
        public SasTaskPropertyViewer(SAS.Shared.AddIns.ISASTaskConsumer3 consumer)
        {
            InitializeComponent();

            // provide a handle to the SAS Enterprise Guide application
            this.Consumer = consumer;
        }
        public RunningTotalsTaskForm(SAS.Shared.AddIns.ISASTaskConsumer3 consumer)
        {
            InitializeComponent();

            // provide a handle to the SAS Enterprise Guide application
            this.Consumer = consumer;
        }
        public DataCardinalityTaskForm(SAS.Shared.AddIns.ISASTaskConsumer3 consumer)
        {
            InitializeComponent();

            // provide a handle to the SAS Enterprise Guide application
            this.Consumer = consumer;

            varTypes = SasData.DataTypesImageListSmall;

            lvColumns.SmallImageList = varTypes;
            lvColumns.LargeImageList = varTypes;

        }
예제 #5
0
        public DataSqueezerTaskForm(SAS.Shared.AddIns.ISASTaskConsumer3 consumer)
        {
            InitializeComponent();

            // provide a handle to the SAS Enterprise Guide application
            this.Consumer = consumer;

            // init compression options
            cmbCompression.DisplayMember = "Name";

            foreach (string key in availOpts.Keys)
            {
                cmbCompression.Items.Add(availOpts[key]);
            }
            cmbCompression.SelectedIndex = 0;
        }
예제 #6
0
 /// <summary>
 /// 修改商品类别
 /// </summary>
 public override void UpdateCategoryInfo(SAS.Entity.CategoryInfo cinfo)
 {
     TaoBaos.UpdateCategoryInfo(cinfo);
 }
예제 #7
0
 /// <summary>
 /// 创建商品类别
 /// </summary>
 public override int CreateCategoryInfo(SAS.Entity.CategoryInfo cinfo)
 {
     return TaoBaos.CreateCateInfo(cinfo);
 }
예제 #8
0
 public void UnBan(SAS.Entity.PostInfo post)
 {
     OnPostUnBanned(post);
 }
예제 #9
0
 public void Edit(SAS.Entity.PostInfo post)
 {
     OnPostEdited(post);
 }
예제 #10
0
 public void Delete(SAS.Entity.PostInfo post)
 {
     OnPostDeleted(post);
 }
예제 #11
0
 public void CreatePost(SAS.Entity.PostInfo post)
 {
     OnPostCreated(post);
 }
예제 #12
0
        private string GetMultipleSelectedValue(SAS.Control.ListBox lb)
        {
            string result = string.Empty;
            foreach (ListItem li in lb.Items)
            {
                if (li.Selected && li.Value != "-1")
                    result += li.Value + ",";
            }

            if (result.Length > 0)
                result = result.Substring(0, result.Length - 1);

            return result;
        }
예제 #13
0
        protected override string OnAttachCreated(SAS.Entity.AttachmentInfo[] attachs, int usergroupid, int userid, string username)
        {
            if (attachs == null)
            {
                return "";
            }
            string[] albumsid = SASRequest.GetString("albums") == "" ? null : SASRequest.GetString("albums").Split(',');
            if (albumsid == null)
                return "";
            int maxphotosize = UserGroups.GetUserGroupInfo(usergroupid).ug_maxspacephotosize;
            int currentphotisize = DbProvider.GetInstance().GetPhotoSizeByUserid(userid);

            for (int i = 0; i < attachs.Length; i++)
            {
                if (attachs[i].Filename != "" && (attachs[i].Filetype == "image/pjpeg") || (attachs[i].Filetype == "image/gif") || (attachs[i].Filetype == "image/x-png"))
                {
                    //空间查检
                    string aid = albumsid[i + 1];
                    if (aid != "0")
                    {
                        if ((maxphotosize - currentphotisize - (int)attachs[i].Filesize) > 0)
                        {
                            string filename = Utils.GetMapPath(BaseConfigs.GetSitePath + "upload/" + attachs[i].Filename.Replace('\\', '/'));
                            string extension = Path.GetExtension(filename);
                            Common.Thumbnail.MakeThumbnailImage(filename, filename.Replace(extension, "_thumbnail" + extension), 150, 150);
                            Common.Thumbnail.MakeSquareImage(filename, filename.Replace(extension, "_square" + extension), 100);
                            PhotoInfo photoinfo = new PhotoInfo();
                            photoinfo.Filename = "upload/" + attachs[i].Filename.Replace('\\', '/');
                            photoinfo.Attachment = attachs[i].Attachment;
                            photoinfo.Filesize = (int)attachs[i].Filesize;
                            photoinfo.Title = attachs[i].Attachment.Remove(attachs[i].Attachment.IndexOf("."));
                            photoinfo.Description = attachs[i].Description;
                            photoinfo.Albumid = int.Parse(aid);
                            photoinfo.Userid = userid;
                            photoinfo.Username = username;
                            photoinfo.Views = 0;
                            photoinfo.Commentstatus = 0;
                            photoinfo.Tagstatus = 0;
                            photoinfo.Comments = 0;
                            photoinfo.IsAttachment = 1;
                            DbProvider.GetInstance().AddSpacePhoto(photoinfo);
                            AlbumInfo albumInfo = DTOProvider.GetAlbumInfo(Convert.ToInt32(aid));
                            albumInfo.Imgcount = DbProvider.GetInstance().GetSpacePhotoCountByAlbumId(int.Parse(aid));
                            DbProvider.GetInstance().SaveSpaceAlbum(albumInfo);
                            currentphotisize += (int)attachs[i].Filesize;
                        }
                        else
                        {
                            return "相册空间不足,可能有图片未能加入相册";
                        }
                    }
                }
            }
            return "";
        }
예제 #14
0
        public virtual void AddObject(string xpath, SAS.Common.Generic.SortedList<int, object> __sortedlist)
#endif
        {
            lock (lockHelper)
            {
                if (__sortedlist.Count > 0)
                {
                    AddObject(xpath + "flag", CacheFlag.CacheHaveData);
                }
                else
                {
                    AddObject(xpath + "flag", CacheFlag.CacheNoData);
                }
                AddObject(xpath, (object)__sortedlist);
            }
        }
예제 #15
0
 public void AddSAS(SAS sas)
 {
     repository.AddCompany(sas);
 }