コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            SampleGridViewer.DataSource = ginProcess.GINProcessInformation.Samples;
            SampleGridViewer.DataBind();
            var sampleGridCommands = from command in SampleGridViewer.Driver.Columns
                                     where command.IsCommand
                                     select command.AttachedRenderer;

            foreach (LinkGINColumnRenderer linkCommand in sampleGridCommands)
            {
                linkCommand.Command += new CommandEventHandler(linkCommand_Command);
            }

            if (!IsPostBack)
            {
                GINProcessDataEditor.DataSource = ginProcess.GINProcessInformation;
                GINProcessDataEditor.DataBind();
            }
        }
コード例 #2
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            transferedData = new PageDataTransfer(Request.Path);
            ginProcess     = GINProcessWrapper.GetGINProcess(IsPostBack);

            GINProcessDataEditor.Driver = GINViewConfigurationReader.GetViewConfiguration("SampleGIN", "PUNSummary");
            SampleDataEditor.Driver     = GINViewConfigurationReader.GetViewConfiguration("SampleGIN", "Sample");
            SampleGridViewer.Driver     = GINViewConfigurationReader.GetViewConfiguration("SampleGIN", "Sample");

            GINProcessDataEditor.Lookup = ginProcess.LookupSource;
            SampleDataEditor.Lookup     = ginProcess.LookupSource;
            SampleGridViewer.Lookup     = ginProcess.LookupSource;

            GINProcessDataEditor.IsNew = false;

            SampleDataEditor.Ok     += new EventHandler(SampleDataEditor_Ok);
            SampleDataEditor.Cancel += new EventHandler(SampleDataEditor_Cancel);

            GINProcessDataEditor.Setup();
            SampleDataEditor.Setup();
        }