element=new detail (_appcontext);
_main=element.Getelement (); _main;
} System.Windows.Controls.UserControl CreateControl (IAppContext _appcontext)
{
_Appcontext=_appcontext; element=new detail (_appcontext); element;
} string Name
{{return «DetailPlugin»; }
} IAppContext Appcontext
{
{_Appcontext;
}
{
_Appcontext=value;
}
} string HumanName
{{return «деталі»; }
}
}
} avto.PluginReport.detail.reports
{class Protocol_PROXY
{
/ / private DataSet dat; int __ id; IAppContext _appContext; Protocol_PROXY (IAppContext _appcontext, Repair _Repair)
{
_appContext=_appcontext;=new List (); rrw=_Repair.RepairWork.ToList (); (RepairWork item in rrw)
{iwws=item.Work.WorkSparepart.ToList (); (WorkSparepart element in iwws)
{WP=new detailProxy (element);. Add (WP);
}
}
_Client=_Repair.Car.Client.Client_Name;
_car=_Repair.Car.Brand_machine.brand_machine_name;
_carnum=_Repair.Car.number;//. Car_Parm.Where (it => it.Car_Parm_Text.Car_Parm_Text1.ToLower () == «Держ номер». ToLower ()). FirstOrDefault (). Car_Param_Value;
_indata=_Repair.inTime.ToLongDateString ();
_outdata=_Repair.OutTime.ToString ();
} string _Client; string Client
{{return _Client; } {_Client=Value; }
} string _car; string CAr
{{return _car; } {_car=Value; }
} string _carnum; string CarNum
{{return _carnum; } {_carnum=Value; }
} string _indata; string InData ??p>
{{return _indata; } {_indata=Value; }
} string _outdata; string OutData ??p>
{{return _outdata; } {_outdata=Value; }
} List detproxy;
} class detailProxy
{string _WorkName; string WorkName
{{return _WorkName; } {_WorkName=Value; }
} string _DetailName; string DetailName
{{return _DetailName; } {_DetailName=Value; }
} string _Unit; string Unit
{{return _Unit; } {_Unit=Value; }
} string _distr; string distr
{{return _distr; } {_distr=Value; }
} string _Count; string Count
{{return _Count; } {_Count=Value; }
} detailProxy (WorkSparepart _detail)
{
_WorkName=_detail.Work.Work_name;
_DetailName=_detail.Spare_part.Spare_part_Name...