示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            TruckGridViewer.DataSource = ginProcess.GINProcessInformation.RegisteredTrucks;
            TruckGridViewer.DataBind();

            var gridCommands = from command in TruckGridViewer.Driver.Columns
                               where command.IsCommand
                               select command.AttachedRenderer;

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

            bool bPunClosed = Math.Abs(ginProcess.GINProcessInformation.PledgedWeight - ginProcess.GINProcessInformation.IssuedWeight) <= 0.0001M;

            if (bPunClosed)
            {
                btnAddTruck.Text = "Close PUN";
            }

            if (!IsPostBack)
            {
                try
                {
                    PUNADataEditor.DataSource = ginProcess.GINProcessInformation.PUNAcknowledgement;
                    PUNADataEditor.DataBind();
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
        }
示例#2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         PUNADataEditor.DataSource = pickupNotice.PUNAInformation;
         ((PUNAcknowledgementInformation)PUNADataEditor.DataSource).PickupNoticeVerifier = new Guid(SystemLookup.LookupSource.GetLookup("CurrentUser")["Id"]);
         PUNADataEditor.DataBind();
     }
 }
示例#3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         try
         {
             //ginProcess.GINProcessInformation.PUNAcknowledgement.AvailabilityVerifier = new Guid(SystemLookup.LookupSource.GetLookup("CurrentUser")["Id"]);
             PUNADataEditor.DataSource = ginProcess.GINProcessInformation.PUNAcknowledgement;
             ((PUNAcknowledgementInformation)PUNADataEditor.DataSource).AvailabilityVerifier = new Guid(SystemLookup.LookupSource.GetLookup("CurrentUser")["Id"]);
             PUNADataEditor.DataBind();
         }
         catch (Exception ex)
         {
             throw ex;
         }
     }
 }