1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
private void Task_Init(object sender, EventArgs e)
{
LoadTask();
LoadListe(liste);
LoadManage(manage);
}
.
.
private void TaskLogistic1_OnDeliveryClick(object sender, FireTaskEvent fte)
{
liste = "ListeDelivery";
LoadListe(liste);
ListeDelivery1.InitDataGrid();
ListeDelivery1.LoadData(fte.EventName.ToString());
ListeDelivery1.Visible = true;
}
private void ListeDelivery1_OnModify(long id)
{
manage = "ManageDeliveryAll";
LoadManage(manage);
ManageDeliveryAll1.Visible = true;
ManageDeliveryAll1.DeliveryId = id;
ManageDeliveryAll1.FirstLoad = true;
ManageDeliveryAll1.CurrentMode = ManagerUserControl.ConvoyeurMode.Edit;
}
.
.
.
private void LoadListe(string listeName)
{
PlaceHolderListe.Controls.Clear();
switch (listeName)
{
case("ListeAnomaly"):
(ListeAnomaly)ListeAnomaly1 = (ListeAnomaly)LoadControl("../Coordination/ListeAnomaly.ascx");
PlaceHolderListe.Controls.Add(ListeAnomaly1);
ListeAnomaly1.OnModify += new NotifyEventHandler(ListeAnomaly1_OnModify);
break;
case("ListeDelivery"):
(ListeDelivery)ListeDelivery1 = (ListeDelivery)LoadControl("../Coordination/ListeDelivery.ascx");
PlaceHolderListe.Controls.Add(ListeDelivery1);
ListeDelivery1.OnModify += new NotifyEventHandler(ListeDelivery1_OnModify);
break;
case("ListeInstallation"):
(ListeInstallation)ListeInstallation1 = (ListeInstallation)LoadControl("../Coordination/ListeInstallation.ascx");
PlaceHolderListe.Controls.Add(ListeInstallation1);
ListeInstallation1.OnModify += new NotifyEventHandler(ListeInstallation1_OnModify);
ListeInstallation1.OnCreate += new NotifyEventHandler(ListeInstallation1_OnCreate);
break;
case("ListeDeliveryVE"):
(ListeDeliveryVE)ListeDeliveryVE1 = (ListeDeliveryVE)LoadControl("../Coordination/ListeDeliveryVE.ascx");
PlaceHolderListe.Controls.Add(ListeDeliveryVE1);
ListeDeliveryVE1.OnModify += new NotifyEventHandler(ListeDeliveryVE1_OnModify);
ListeDeliveryVE1.OnCreate += new NotifyEventHandler(ListeDeliveryVE1_OnCreate);
break;
case("ListeVDSale"):
(ListeVDSale)ListeVDSale1 = (ListeVDSale)LoadControl("../Coordination/ListeVDSale.ascx");
PlaceHolderListe.Controls.Add(ListeVDSale1);
ListeVDSale1.OnModify += new NotifyEventHandler(ListeVDSale1_OnModify);
break;
}
.
.
. |
Partager