예제 #1
0
    protected void PayoutChanged(object sender, EventArgs e)
    {
        CalculatePayout();

        FillPlexingPeriodData(PlexingPeriodId.Value);
        PlexingPeriodInfoUpdatePanel.Update();
    }
예제 #2
0
    protected void DisplayPlexingDate(object sender, CommandEventArgs e)
    {
        if (e.CommandName == "DisplayDatePlexes")
        {
            string[] command = e.CommandArgument.ToString().Split('|');

            LoadPlexingPeriodPayoutData(command[0].ToInt());
            FillPlexingPeriodDateData(command[0].ToInt(), DateTime.Parse(command[1]));
            ShowEndPeriodButton(LastPeriodId == command[0].ToInt());
            PlexingPeriodInfoUpdatePanel.Update();
        }
    }
예제 #3
0
 protected void DisplayPlexingPeriod(object sender, CommandEventArgs e)
 {
     if (e.CommandName == "DisplayPlexingPeriod")
     {
         using (PlexingFleetDataContext context = new PlexingFleetDataContext(ConnectionString))
         {
             LoadPlexingPeriodPayoutData(e.CommandArgument.ToString().ToInt());
             FillPlexingPeriodData(e.CommandArgument.ToString().ToInt());
             ShowEndPeriodButton(!context.PlexingPeriods.First(x => x.PlexingPeriodId == e.CommandArgument.ToString().ToInt()).ToDate.HasValue);
             PlexingPeriodInfoUpdatePanel.Update();
         }
     }
 }