示例#1
0
        public override HashTableofParameterRow GetEntries()
        {
            bool enable = true;

            if (hpars == null)
            {
                hpars = new HashTableofParameterRow();
                hpars.Add(new ParameterRowTextBox(this, ConstantDict.GetColumnTitle("Id"), false, 30).SetEnable(enable));
                //hpars.Add(new ParameterRowTextBox(this, ConstantDict.GetColumnTitle("Tahun"), true, 100).SetEnable(enable));
                //hpars.Add(new ParameterRowTextBox(this, ConstantDict.GetColumnTitle("Satker"), true, 100).SetEnable(enable));
                hpars.Add(new ParameterRowTextBox(this, ConstantDict.GetColumnTitle("Kdpemda"), false, 30).SetEnable(enable));
                hpars.Add(new ParameterRowTextBox(this, ConstantDict.GetColumnTitle("Kddata"), false, 30).SetEnable(enable));
                hpars.Add(new ParameterRowTextBox(this, ConstantDict.GetColumnTitle("Kdbab"), false, 30).SetEnable(enable));
                hpars.Add(new ParameterRowMemo(this, ConstantDict.GetColumnTitle("Nmbab"), true, 3).SetEnable(enable));
                hpars.Add(new ParameterRowTextBox(this, ConstantDict.GetColumnTitle("Kdkel"), false, 30).SetEnable(enable));
                hpars.Add(new ParameterRowMemo(this, ConstantDict.GetColumnTitle("Nmkel"), true, 3).SetEnable(enable));
                hpars.Add(new ParameterRowTextBox(this, ConstantDict.GetColumnTitle("Kdjns"), false, 30).SetEnable(enable));
                hpars.Add(new ParameterRowMemo(this, ConstantDict.GetColumnTitle("Nmjns"), true, 3).SetEnable(enable));
                hpars.Add(new ParameterRowTextBox(this, ConstantDict.GetColumnTitle("Kdobj"), false, 30).SetEnable(enable));
                hpars.Add(new ParameterRowMemo(this, ConstantDict.GetColumnTitle("Nmobj"), true, 3).SetEnable(enable));
                hpars.Add(new ParameterRowTextBox(this, ConstantDict.GetColumnTitle("Kdrnc"), false, 30).SetEnable(enable));
                hpars.Add(new ParameterRowMemo(this, ConstantDict.GetColumnTitle("Nmrnc"), true, 3).SetEnable(enable));
                hpars.Add(new ParameterRowTextBox(this, ConstantDict.GetColumnTitle("Kdor1"), false, 30).SetEnable(enable));
                hpars.Add(new ParameterRowMemo(this, ConstantDict.GetColumnTitle("Nmor1"), true, 3).SetEnable(enable));
                hpars.Add(new ParameterRowTextBox(this, ConstantDict.GetColumnTitle("Kdor2"), false, 30).SetEnable(enable));
                hpars.Add(new ParameterRowMemo(this, ConstantDict.GetColumnTitle("Nmor2"), true, 3).SetEnable(enable));
                hpars.Add(new ParameterRowTextBox(this, ConstantDict.GetColumnTitle("Kdor3"), false, 30).SetEnable(enable));
                hpars.Add(new ParameterRowMemo(this, ConstantDict.GetColumnTitle("Nmor3"), true, 3).SetEnable(enable));
                hpars.Add(new ParameterRowTextBox(this, ConstantDict.GetColumnTitle("Kdor4"), false, 30).SetEnable(enable));
                hpars.Add(new ParameterRowMemo(this, ConstantDict.GetColumnTitle("Nmor4"), true, 3).SetEnable(enable));
                hpars.Add(new ParameterRowTextBox(this, ConstantDict.GetColumnTitle("Kdor5"), false, 30).SetEnable(enable));
                hpars.Add(new ParameterRowMemo(this, ConstantDict.GetColumnTitle("Nmor5"), true, 3).SetEnable(enable));
                hpars.Add(new ParameterRowTextBox(this, ConstantDict.GetColumnTitle("Kdpr"), false, 30).SetEnable(enable));
                hpars.Add(new ParameterRowMemo(this, ConstantDict.GetColumnTitle("Nmpr"), true, 3).SetEnable(enable));
                hpars.Add(new ParameterRowTextBox(this, ConstantDict.GetColumnTitle("Kdkeg"), false, 30).SetEnable(enable));
                hpars.Add(new ParameterRowMemo(this, ConstantDict.GetColumnTitle("Nmkeg"), true, 3).SetEnable(enable));
                hpars.Add(new ParameterRowTextBox(this, ConstantDict.GetColumnTitle("Kdfung1"), false, 30).SetEnable(enable));
                hpars.Add(new ParameterRowMemo(this, ConstantDict.GetColumnTitle("Nmfung1"), true, 3).SetEnable(enable));
                hpars.Add(new ParameterRowTextBox(this, ConstantDict.GetColumnTitle("Kdfung2"), false, 30).SetEnable(enable));
                hpars.Add(new ParameterRowMemo(this, ConstantDict.GetColumnTitle("Nmfung2"), true, 3).SetEnable(enable));
                hpars.Add(new ParameterRowTextBox(this, ConstantDict.GetColumnTitle("Kdfung3"), false, 30).SetEnable(enable));
                hpars.Add(new ParameterRowMemo(this, ConstantDict.GetColumnTitle("Nmfung3"), true, 3).SetEnable(enable));
                //hpars.Add(new ParameterRowNumeric(this, ConstantDict.GetColumnTitle("Nilai"), true, 30).SetEnable(enable));
                //hpars.Add(DmtahunLookupControl.Instance.GetLookupParameterRow(this, true).SetEnable(enable));
                //hpars.Add(new ParameterRowSelect(ConstantDict.GetColumnTitle("Kdlevel"),
                //  DmlevelLookupControl.GetListDataSingleton(), "Kdlevel=Nmlevel", 30).SetAllowRefresh(false).SetEnable(enable));
                //hpars.Add(new ParameterRowType(this, true));
                hpars.Add(new ParameterRowSelect(ConstantDict.GetColumnTitleEntry("Status"),
                                                 DmstatusLookupControl.GetListDataSingleton(), "Idstatus=Nmstatus", 30).SetAllowRefresh(false).SetEnable(enable));
                //hpars.Add(new ParameterRowCek(this, true));
                hpars.Add(new ParameterRowUploadFile(this, true));
                hpars.Add(new ParameterRowHelp(this, true));
                hpars.Add(new ParameterRowForum(this, true));
            }
            return(hpars);
        }
示例#2
0
 public override DataControlFieldCollection GetColumns()
 {
     if (columns == null)
     {
         columns = new DataControlFieldCollection
         {
             Fields.Create(ConstantDict.GetColumnTitle("Statusicon"), typeof(Icon), 5, HorizontalAlign.Center)
         };
         //columns.Add(ExtFields.GetRatingField());
         //columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Stricon"), typeof(CommandColumn), Cmds, 5, HorizontalAlign.Center));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Id"), typeof(string), 10, HorizontalAlign.Left).SetEditable(true));
         //columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Tahun"), typeof(string), 10, HorizontalAlign.Left).SetEditable(true));
         //columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Satker"), typeof(string), 10, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Kdpemda"), typeof(string), 30, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Kddata"), typeof(string), 30, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Kdbab"), typeof(string), 30, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Nmbab"), typeof(string), 50, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Kdkel"), typeof(string), 30, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Nmkel"), typeof(string), 50, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Kdjns"), typeof(string), 30, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Nmjns"), typeof(string), 50, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Kdobj"), typeof(string), 30, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Nmobj"), typeof(string), 50, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Kdrnc"), typeof(string), 30, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Nmrnc"), typeof(string), 50, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Kdor1"), typeof(string), 30, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Nmor1"), typeof(string), 50, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Kdor2"), typeof(string), 30, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Nmor2"), typeof(string), 50, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Kdor3"), typeof(string), 30, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Nmor3"), typeof(string), 50, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Kdor4"), typeof(string), 30, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Nmor4"), typeof(string), 50, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Kdor5"), typeof(string), 30, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Nmor5"), typeof(string), 50, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Kdpr"), typeof(string), 30, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Nmpr"), typeof(string), 50, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Kdkeg"), typeof(string), 30, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Nmkeg"), typeof(string), 50, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Kdfung1"), typeof(string), 30, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Nmfung1"), typeof(string), 50, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Kdfung2"), typeof(string), 30, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Nmfung2"), typeof(string), 50, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Kdfung3"), typeof(string), 30, HorizontalAlign.Left).SetEditable(true));
         columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Nmfung3"), typeof(string), 50, HorizontalAlign.Left).SetEditable(true));
         //columns.Add(Fields.Create(ConstantDict.GetColumnTitle("Nilai"), typeof(decimal), 15, HorizontalAlign.Right));
     }
     return(columns);
 }
示例#3
0
 public new IProperties GetProperties()
 {
     if (cViewListProperties == null)
     {
         cViewListProperties = (ViewListProperties)base.GetProperties();
     }
     cViewListProperties.TitleList      = ConstantDict.Translate(XMLName);
     cViewListProperties.PrimaryKeys    = new String[] { "Id" };
     cViewListProperties.IDKey          = "Id";                  //IDKey for ID Notes
     cViewListProperties.IDProperty     = "Id";                  //UniqueKey in gridview
     cViewListProperties.ReadOnlyFields = new String[] {};       //Key in GetFilters should put here
     cViewListProperties.SortFields     = new String[] { "Id" }; //
     cViewListProperties.ModeEditable   = ViewListProperties.MODE_EDITABLE_ADD_DEL;
     cViewListProperties.EntryStyle     = ViewListProperties.ENTRY_STYLE_FORM;
     //cViewListProperties.EntryStyle = ViewListProperties.ENTRY_STYLE_LOOKUP;
     //cViewListProperties.LookupDC = "CoreNET.Common.BO.DmstatusLookupControl, CoreNET.Common.Sys";
     //cViewListProperties.LookupLabelQuery = BaseDataControl.LOOKUP;
     return(cViewListProperties);
 }