using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using RNGClassLibrary;

namespace RNGWcfService1
{
    #region ShortMachineProduction
    [ServiceContract]
    public interface IShortMachineProduction
    {
        [OperationContract]
        int ShortMachineProduction_AddNew(DateTime Date, string UnitId, ref int FShortMachineProductionId, ref string errorDesc);
        [OperationContract]
        int ShortMachineProduction_Edit(int Id, DateTime Date, string UnitId, ref string errorDesc);
        [OperationContract]
        int ShortMachineProductionone_AddNew(int ShortMachineProductionId, string VendorId, string MachineNo, string itemId, decimal Quantity, decimal ActualWeight, decimal StdWeight,string PoNumber, ref string errorDesc);
        [OperationContract]
        int ShortMachineProductionone_Edit(int Id, string VendorId, string MachineNo, string itemId, decimal Quantity, decimal ActualWeight, decimal StdWeight, string PoNumber, ref string errorDesc);
        [OperationContract]
        List<ShortMachineProduction> ShortMachineProduction_GetAll(int Id);
        [OperationContract]
        List<ShortMachineProductionOne> ShortMachineProductionOne_GetAll(int Id, int ShortMachineProductionId);
    }
    #endregion


    #region FettlingProduction
    [ServiceContract]
    public interface IFettlingProduction
    {
        [OperationContract]
        int FettlingProduction_AddNew(DateTime Date, string UnitId, ref int FettlingProductionId, ref string errorDesc);
        [OperationContract]
        int FettlingProduction_Edit(int Id, DateTime Date, string UnitId, ref string errorDesc);
        [OperationContract]
        int FettlingProductionone_AddNew(int FettlingProductionId, string VendorId, string itemId, int Quantity, decimal ActualWeight, decimal StdWeight, string PoNumber, ref string errorDesc);
        [OperationContract]
        int FettlingProductionone_Edit(int Id, string VendorId, string itemId, int Quantity, decimal ActualWeight, decimal StdWeight, string PoNumber, ref string errorDesc);
        [OperationContract]
        List<FettlingProduction> FettlingProduction_GetAll(int Id);
        [OperationContract]
        List<FettlingProductionOne> FettlingProductionOne_GetAll(int Id, int FettlingProductionId);
    }
    #endregion


    #region ItemMasterServices
    [ServiceContract]
    public interface IItemMasterServices
    {
        [OperationContract]
        int CreateNewItem(string DesignName, string Type, string MetalType, string Op_Stock, string MinimumLevel, string MaxLevel, string MeasurementUnitName, string CastWeight, string FinishedWeight, string DrawingWeight, string IsActive, string UserID, string FinalYear, string Status, DateTime CreatedDate, string PatttenOnPlate, string BoxWeight, string MetalGrade, string RequiredHardness, string ItemForIRN2, string MaterialType, string GalvanizeWeight, ref string errorDesc);

        [OperationContract]
        int EditItem(int Item_Id, string DesignName, string Type, string MetalType, string Op_Stock, string MinimumLevel, string MaxLevel, string MeasurementUnitName, string CastWeight, string FinishedWeight, string DrawingWeight, string IsActive, string UserID, string FinalYear, string Status, DateTime CreatedDate, string PatttenOnPlate, string BoxWeight, string MetalGrade, string RequiredHardness, string ItemForIRN2, string MaterialType, string GalvanizeWeight, ref string errorDesc);

        [OperationContract]
        List<ItemMaster> GetAllItemMaster(int Item_Id, string IsActive);
    }
    #endregion

    #region AdminLogin
    [ServiceContract]
    public interface IAdminLoginServices
    {
        [OperationContract]
        int AdminLogin(string UserName, string Password, ref int Admin_Id, ref string errorDesc);

        [OperationContract]
        int AdminChangeLogin(int Admin_Id, string Password, ref string errorDesc);
    }
    #endregion

    #region TypeMaster
    [ServiceContract]
    public interface ITypeMasterServices
    {
        [OperationContract]
        int CreateNewTypeMaster(string TypeName, string IsActive, string UserID, string FinalYear, string Status, ref string errorDesc);

        [OperationContract]
        int EditTypeMaster(int Type_ID, string TypeName, string IsActive, string UserID, string FinalYear, string Status, ref string errorDesc);

        [OperationContract]
        List<TypeMaster> GetAllTypeMaster(int Type_ID, string IsActive);
    }
    #endregion

    #region MetalMaster
    [ServiceContract]
    public interface IMetalServices
    {
        [OperationContract]
        int CreateNewMetalMaster(string Metal_Name, string IsActive, string UserID, string FinalYear, string Status, ref string errorDesc);
        [OperationContract]
        int EditMetalMaster(int Metal_ID, string Metal_Name, string IsActive, string UserID, string FinalYear, string Status, ref string errorDesc);

        [OperationContract]
        List<MetalMaster> GetAllMetalMaster(int Metal_ID);
    }
    #endregion

    #region ProductionUnitMaster
    [ServiceContract]
    public interface IProductionUnitMasterServices
    {
        [OperationContract]
        int CreateNewProductionUnitMaster(string UnitName, string IsActive, string UserID, string FinalYear, string Status, ref string errorDesc);
        [OperationContract]
        int EditProductionUnitMaster(int ProductionId, string UnitName, string IsActive, string UserID, string FinalYear, string Status, ref string errorDesc);
        [OperationContract]
        List<ProductionUnitMaster> GetAllProductionUnitMaster(int ProductionId);
    }
    #endregion

    #region StageProcessMaster
    [ServiceContract]
    public interface IStageProcessMasterServices
    {
        [OperationContract]
        int CreateNewStageOfProcessMaster(string NameOfProcess, string IsActive, string UserID, string FinalYear, string Status, ref string errorDesc);
        [OperationContract]
        int EditStageOfProcessMaster(int StageProcess_ID, string NameOfProcess, string IsActive, string UserID, string FinalYear, string Status, ref string errorDesc);
        [OperationContract]
        List<StageProcessMaster> GetAllStageProcessMaster(int StageProcess_ID);

    }
    #endregion

    #region GradeMaster
    [ServiceContract]
    public interface IGradeMasterServices
    {
        [OperationContract]
        int CreateNewGradeMaster(string Grade_Name, string IsActive, string UserID, string FinalYear, string Status, ref string errorDesc);

        [OperationContract]
        int EditGradeMaster(int Grade_ID, string Grade_Name, string IsActive, string UserID, string FinalYear, string Status, ref string errorDesc);

        [OperationContract]
        List<GradeMaster> GetAllGradeMaster(int Grade_ID);
    }
    #endregion

    #region ShiftMaster
    [ServiceContract]
    public interface IShiftMasterServices
    {
        [OperationContract]
        int CreateNewShiftMaster(string ShiftName, string ShiftHours, string IsActive, string UserID, string FinalYear, string Status, ref string errorDesc);
        [OperationContract]
        int EditShiftMaster(int Shift_ID, string ShiftName, string ShiftHours, string IsActive, string UserID, string FinalYear, string Status, ref string errorDesc);
        [OperationContract]
        List<ShiftMaster> GetAllShiftMaster(int Shift_ID);
    }
    #endregion

    #region CustomerMaster
    [ServiceContract]
    public interface ICustomerMasterServices
    {
        [OperationContract]
        int CreateNewCustomerMaster(string Name, string MobileNo, string EmailId, string Address, string City, string State, string Country, string Pin, string Website, string NameOfContactPerson, string Designation, string ContPersonEmailId, string ContPersonMobile, string UserName, string Password, string IsActive, string UserID, string FinalYear, string Status, string GSTNo, ref string errorDesc);

        [OperationContract]
        int EditCustomerMaster(int CustomerId, string Name, string MobileNo, string EmailId, string Address, string City, string State, string Country, string Pin, string Website, string NameOfContactPerson, string Designation, string ContPersonEmailId, string ContPersonMobile, string UserName, string Password, string IsActive, string UserID, string FinalYear, string Status, string GSTNo, ref string errorDesc);

        [OperationContract]
        List<CustomerMaster> GetAllCustomerMaster(int CustomerId);

        [OperationContract]
        List<ItemDetail> GetAllItemDetail(int ItemDetail_ID);

        [OperationContract]
        int CreateNewItemMasterDetail(string Item, string UserName, ref string errorDesc);

        [OperationContract]
        void ItemGetALL(string MobileNo, ref List<CustomerMaster> listOrder,
     ref List<ItemDetail> listOrderProduct);
    }
    #endregion

    #region EmployeeMaster
    [ServiceContract]
    public interface IEmployeeMasterServices
    {
        [OperationContract]
        int CreateNewEmployeeMaster(string Name, string Address, string Designation, string MobileNo, string EmailId, string Password, string IsActive, string UserID, string FinalYear, string Status, string UserName, ref string errorDesc);

        [OperationContract]
        int EditEmployeeMaster(int EmployeeId, string Name, string Address, string Designation, string MobileNo, string EmailId, string Password, string IsActive, string UserID, string FinalYear, string Status, string UserName, ref string errorDesc);

        [OperationContract]
        List<EmployeeMaster> GetAllEmployeeMaster(int EmployeeId);

        [OperationContract]
        int EmployeeLogin(string UserName, string Password, ref int EmployeeId, ref string errorDesc);

        [OperationContract]
        int EmployeeChangePasswordLogin(int EmployeeId, string Password, ref string errorDesc);
    }
    #endregion

    #region VendorMaster
    [ServiceContract]
    public interface IVendorMasterServices
    {
        [OperationContract]
        int CreateNewVendorMaster(string NameOfVendor, string Address, string Mobile, string EmailId, string Website, string NameOfContactPerson, string Designation, string ContPersonEmailID, string ContPersonMobile, string JobWork, string ItemName, string IsActive, string UserId, string FinalYear, string Status, string Pin, string GSTNo, ref string errorDesc);

        [OperationContract]
        int EditVendorMaster(int Vendor_Id, string NameOfVendor, string Address, string Mobile, string EmailId, string Website, string NameOfContactPerson, string Designation, string ContPersonEmailID, string ContPersonMobile, string JobWork, string ItemName, string IsActive, string UserId, string FinalYear, string Status, string Pin, string GSTNo, ref string errorDesc);

        [OperationContract]
        List<VendorMaster> GetAllVendorMaster(int Vendor_Id);

        [OperationContract]
        List<VendorMasterItem> GetAllVendorMasterItem(int VendorItemDetail_ID);

        [OperationContract]
        int CreateNewVendorMasterItem(string Item, string MobileNo, ref string errorDesc);
    }
    #endregion

    #region OrderMaster
    [ServiceContract]
    public interface IOrderMasterServices
    {
        [OperationContract]
        int CreateNewOrderMaster(string CustomerName, string MobileNo, string EmailId, string EmailId2, string NameOfProcess, string Unit, string Shift, DateTime PaningFromDate, DateTime PaningToDate, string RNGNo, string CustomerOrderNo, string Remark, string UserId, string Status, string FinalYear, string Active, ref string errorDesc);

        [OperationContract]
        int EditOrderMaster(int Order_Id, string CustomerName, string MobileNo, string EmailId, string EmailId2, string NameOfProcess, string Unit, string Shift, DateTime PaningFromDate, DateTime PaningToDate, string RNGNo, string CustomerOrderNo, string Remark, string UserId, string Status, string FinalYear, string Active, ref string errorDesc);

        [OperationContract]
        List<OrderMaster> GetAllOrderMaster(string RNGNo);
    }
    #endregion

    #region OrderItemMaster
    [ServiceContract]
    public interface IOrderItemMasterServices
    {
        [OperationContract]
        int CreateNewOrderItemMaster(string RNGNo, string Item, string Spacification, string CastWeight, string FinishedWeight, string OrderQty, string StockOnFloor, string BalanceForProduction, string NoofPattenrnsforplate, string NoOfBoxNeeded, string BoxPerin150KG, string NoOfBoxPerShift, string NoOfShiftForTotalOrder, string TotalNoOfShift12hours, string BoxWeight, string TotalOredWeight, string MetalGrade, string Column1, ref string errorDesc);
        [OperationContract]
        int EditOrderItemMaster(int Item_ID, string RNGNo, string Item, string Spacification, string CastWeight, string FinishedWeight, string OrderQty, string StockOnFloor, string BalanceForProduction, string NoofPattenrnsforplate, string NoOfBoxNeeded, string BoxPerin150KG, string NoOfBoxPerShift, string NoOfShiftForTotalOrder, string TotalNoOfShift12hours, string BoxWeight, string TotalOredWeight, string MetalGrade, ref string errorDesc);
        [OperationContract]
        List<OrderItemMaster> GetAllOrderItemMaster(int Item_ID, string RNGNo);
    }
    #endregion

    #region FuranceLogSheet
    [ServiceContract]
    public interface IFuranceLogSheetServices
    {
        [OperationContract]
        int CreateNewFuranceLogSheet(string UnitName, DateTime Date, string DayShiftOperator, string Shift, string StartMeterReading, string StopMeterReading, string TotalUnits, string TotalMelting, string UnitPerKg, string IsActive, string UserID, string FinalYear, string Status,
            ref int FuranceId, string NetProduction, string FloorMetal, string Rejection, string Riserweight, string SlagWeight, List<FuranceLogSheetIRN1> ListSalesFuranceLogSheetIRN1, List<FuranceLogSheetIRN2> ListSalesFuranceLogSheetIRN2, List<IRN2> ListIRN2, int ShiftMasterid, decimal BunchWeight, ref string errorDesc);
        [OperationContract]
        List<FuranceLogSheet> GetAllFuranceLogSheet(int FuranceId);

        [OperationContract]
        List<IRN2> GetAllItemIRN2(int ItemIRN2_ID, int FuranceId);

        [OperationContract]
        List<IRN2> GetAllItemIRN2S(int ItemIRN2_ID, int FuranceId);

        [OperationContract]
        int EditFuranceLogSheet(int FuranceId, string UnitName, DateTime Date, string DayShiftOperator, string Shift, string StartMeterReading, string StopMeterReading, string TotalUnits, string TotalMelting, string UnitPerKg, string IsActive, string UserID, string FinalYear, string Status, string NetProduction, string FloorMetal, string Rejection, string Riserweight, string SlagWeight,
       List<FuranceLogSheetIRN1> ListSalesFuranceLogSheetIRN1, List<FuranceLogSheetIRN2> ListSalesFuranceLogSheetIRN2, List<IRN2> ListIRN2, int ShiftMasterid, decimal BunchWeight, ref string errorDesc);

        [OperationContract]
        List<FuranceLogSheetIRN1> GetAllFuranceLogSheetIRN1(int IRN1ID, int FuranceId);


        [OperationContract]
        int Irnone_Edit(int IRN1ID, string HeatNo, string CuNo, string MetalGrade, string LiningHtNo, string StartNo, string StopTime, string VoltageInPanel, string KWInPanel, string CE, string Carbon, string Silicon, string AddedSilicon, string PouredBoxNo, string DrgNo, string TappingTemp, string Other1, string Other2, string Other3, string Other4, string startdate, string enddate, string totaltime, string totalminit, decimal AddedCarbon, decimal AddedFerroSilicon, decimal BunchWeight, decimal AddedCrcScrap, ref string errorDesc);


        [OperationContract]
        int Irntwo_Edit(int ItemIRN2_ID, int ItemId, string ItemValue, string HeatNo, string CUNo, string Remarks, string CRCScarp, string Riser, string FloorMetal, string Turning, string RejectionScarp, string Carburiser, string FERROSILICON, string FeSiMagnesium, string Innoculant, string MsScrap, string Cooper, string FeManganase, string OtherMetal, string ChargeInKG, string Other1, string Other2, string Other3, string Other4, int Bunchweight, string Carbon, string Nikal, string Boron, string BismuthMetal, string SorelMetal, ref string errorDesc);





        [OperationContract]
        int furchaselogsheeteditListIRN2_AddNew(int FuranceId, List<IRN2> ListIRN2, ref string errorDesc);


        [OperationContract]
        int furchaselogsheeteditListIRN1_AddNew(int FuranceId, List<FuranceLogSheetIRN1> ListSalesFuranceLogSheetIRN1, ref string errorDesc);

    }
    #endregion

    #region Rejectionreason
    [ServiceContract]
    public interface IRejectionreasonServices
    {
        [OperationContract]
        int CreateNewREJECTIONREASONMaster(string ReasonName, string IsActive, string Status, string FinalYear, ref string errorDesc);

        [OperationContract]
        int EditREJECTIONREASONMaster(int RejectionReasionId, string ReasonName, string IsActive, string Status, string FinalYear, ref string errorDesc);

        [OperationContract]
        List<REJECTIONREASON> GetAllREJECTIONREASONMaster(int RejectionReasionId);
    }
    #endregion

    #region MaterailPurchaseInward
    [ServiceContract]
    public interface IMaterailPurchaseInwardServices
    {
        [OperationContract]
        int CreateNewMaterailPurchaseInwardMaster(DateTime Date, string VendorName, string UnitName, string Item, string Qty, string Rate, string Amount, string Remarks, string IsActive, string UserID, string FinalYear, string Status, ref string errorDesc);
        [OperationContract]
        int EditMaterailPurchaseInwardMaster(int MaterialPurchaseInword_ID, DateTime Date, string VendorName, string UnitName, string Item, string Qty, string Rate, string Amount, string Remarks, string IsActive, string UserID, string FinalYear, string Status, ref string errorDesc);
        [OperationContract]
        List<MaterailPurchaseInward> GetAllMaterailPurchaseInwardMaster(int MaterialPurchaseInword_ID);
    }
    #endregion

    #region OtherMetalIssue
    [ServiceContract]
    public interface IOtherIssuServices
    {
        [OperationContract]
        int CreateNewOtherMetalIssue(DateTime date, string NameOfProcess, string UnitName, string Item, string Qty, string Remarks, string IsActive, string UserID, string FinalYear, string Status, ref string errorDesc);

        [OperationContract]
        int EditOtherMetalIssue(int MetalIssueId, DateTime date, string NameOfProcess, string UnitName, string Item, string Qty, string Remarks, string IsActive, string UserID, string FinalYear, string Status, ref string errorDesc);

        [OperationContract]
        List<OtherMetalIssue> GetAllOtherMetalIssue(int MetalIssueId);
    }
    #endregion

    #region RejectionEntry
    [ServiceContract]
    public interface IRejectionEntryServices
    {
        [OperationContract]
        int CreateNewRejectionEntry(DateTime Date, string UnitName, string ProcessName, string Remarks, string Status, string ItemName, string IsActive, string RejectQty, string Reason, string UserID, string FinalYear, int MainId, ref string errorDesc);
        [OperationContract]
        int EdiRejectionEntry(int Rejection_Id, DateTime Date, string UnitName, string ProcessName, string Remarks, string ItemName, string IsActive, string RejectQty, string Reason, string UserID, string FinalYear, string Status, int MainId, ref string errorDesc);
        [OperationContract]
        List<RejectionEntry> GetAllRejectionEntry(int Rejection_Id);
        [OperationContract]
        List<RejectionEntry> RejectionEntryget_GetAll(int Rejection_Id);
        [OperationContract]
        List<RejactionentryOne> RejectionEntryMainid_GetAll(int Mainid);
        [OperationContract]
        List<RejectionEntry> Sp_RejectionEntrysingle_GetAll(int Rejection_Id);


    }
    #endregion

    #region CASTINGHARDNES
    [ServiceContract]
    public interface ICASTINGHARDNESServices
    {
        [OperationContract]
        int CreateNewCASTINGHARDNES(string Date, string Unit, string ProcessName, string IsActive, string UserID, string FinalYear, string Status,
            ref int Casting_Id, List<CASTINGHARDNESItems> ListCASTINGHARDNESItems, ref string errorDesc);

        [OperationContract]
        List<CASTINGHARDNES> GetAllCASTINGHARDNES(int Casting_Id);

        [OperationContract]
        List<CASTINGHARDNESItems> GetAllCASTINGHARDNESItems(int CastingHardnessItem_ID, int Casting_Id);

        [OperationContract]
        int EditNewCASTINGHARDNES(int Casting_Id, string Date, string Unit, string ProcessName, string IsActive, string UserID, string FinalYear, string Status,
           List<CASTINGHARDNESItems> ListCASTINGHARDNESItems, ref string errorDesc);

        [OperationContract]
        int CreateNewCASTINGHARDNESItem(int Casting_Id, string Item, string ProductionDate, string TotalProductionpcs, string RequiredHardness, string AvgCheckPoint, string HeatNo, string Sample1, string Sample2,
          string Sample3, string Sample4, string Sample5, string Sample6, ref string errorDesc);


        [OperationContract]
        int CASTINGHARDNESItem_edit(int CastingHardnessItem_ID, string Item, string ProductionDate, string TotalProductionpcs, string RequiredHardness, string AvgCheckPoint, string HeatNo, string Sample1, string Sample2,
       string Sample3, string Sample4, string Sample5, string Sample6, string Remarks, ref string errorDesc);
    }
    #endregion

    #region DespatchEntry
    [ServiceContract]
    public interface IDespatchEntryServices
    {
        [OperationContract]
        int CreateNewDespatchEntry(string UnitName, DateTime date, string itemName, string qty, string VendorName, string Remarks, DateTime CreatedDate, string IsActive, string UserID, string FinalYear, string Status, ref string errorDesc);
        [OperationContract]
        int EditNewDespatchEntry(int DespatchId, string UnitName, DateTime date, string itemName, string qty, string VendorName, string Remarks, string IsActive, string UserID, string FinalYear, string Status, ref string errorDesc);
        [OperationContract]
        List<DespatchEntry> GetAllDespatchEntry(int DespatchId);
    }
    #endregion

    #region DisposalEntry
    [ServiceContract]
    public interface IDisposalEntryServices
    {
        [OperationContract]
        int CreateNewDisposalEntry(string UnitName, DateTime date, string item, string Qty, string Weight, string Remarks, DateTime CreatedDate, string IsActive, string UserID, string FinalYear, string Status, ref string errorDesc);
        [OperationContract]
        int EditNewDisposalEntry(int DisposalId, string UnitName, DateTime date, string item, string Qty, string Weight, string Remarks, string IsActive, string UserID, string FinalYear, string Status, ref string errorDesc);
        [OperationContract]
        List<DisposalEntry> GetAllDisposalEntry(int DisposalId);
    }
    #endregion




    #region DailyMaltingPlanning
    [ServiceContract]
    public interface IDailyMaltingPlanning
    {
        [OperationContract]
        int DailyMaltingMaster_AddNew(string DocNo, DateTime Date, int Unitid, int Metaltypeid, DateTime Planningdate, int Meltingopid, int Grindingopid, int Punchingopid, string Remarks, string Furnse, string Allowmetergrade, string Allowmetergradeqty, string Ingot, string Ingotqty, string Riser, string Riserqty, string Turning, string Rejection, string Anyothermetal, string Anyothermetalqty, ref int FId, ref string errorDesc);

        [OperationContract]
        int DailyMaltingMaster_Edit(int Id, string DocNo, DateTime Date, int Unitid, int Metaltypeid, DateTime Planningdate, int Meltingopid, int Grindingopid, int Punchingopid, string Remarks, string Furnse, string Allowmetergrade, string Allowmetergradeqty, string Ingot, string Ingotqty, string Riser, string Riserqty, string Turning, string Rejection, string Anyothermetal, string Anyothermetalqty, ref string errorDesc);
        [OperationContract]
        List<Meltingplanng> DailyMaltingMaster_GetAll(int Id);

        [OperationContract]
        int DailyMaltingoneMaster_AddNew(string DrawingNo, int DieoperatorName, int Planqty, int Prodqty, int MaltingplanId, ref string errorDesc);

        [OperationContract]
        List<MeltingPlanningone> DailyMaltingoneMaster_GetAll(int MaltingplanId, int Maltingplanning1);

        [OperationContract]
        int DailyMaltingoneMaster_Edit(int Maltingplanning1, string DrawingNo, int DieoperatorName, int Planqty, int Prodqty, ref string errorDesc);
    }
    #endregion





    #region DailyFoundryProduction
    [ServiceContract]
    public interface IDailyFoundryProduction
    {
        [OperationContract]
        int DailyFoundlyProduction_AddNew(DateTime Date, string DocNo, int Unitid, int MetalId, int Meltingoperatorone, int Meltingoperatortwo, int Dieoperatorone, int Dieoperatortwo, int Dieoperatorthree, string Opreading, string Clreading, string FcStarttime, string FcFinishtime, string PowerAverage, string DrossWeight, string InwardRiserWeight, string InwardTurningWeight, string InwardRejectionWeight, ref int FpId, string Dieoperatorfour, string Dieoperatorfive, string Dieoperatorsix, ref string errorDesc);


        [OperationContract]
        int DailyFoundlyProduction_Edit(int FpId, DateTime Date, string DocNo, int Unitid, int MetalId, int Meltingoperatorone, int Meltingoperatortwo, int Dieoperatorone, int Dieoperatortwo, int Dieoperatorthree, string Opreading, string Clreading, string FcStarttime, string FcFinishtime, string PowerAverage, string DrossWeight, string InwardRiserWeight, string InwardTurningWeight, string InwardRejectionWeight, string Dieoperatorfour, string Dieoperatorfive, string Dieoperatorsix, ref string errorDesc);


        [OperationContract]
        List<DailyFoundryproduction> DailyFoundryproduction_GetAll(int FpId);

        [OperationContract]
        int DailyFoundlyProductionone_AddNew(int FpId, string HeatNo, string AlloyIngotWeight, string AlloyIngotPcs, string RejectionWeight, string ReasonForRejection, string RiserWeight, string TurningWeight, string PouringEndTime, string MetalTemp, string AtbrenorFive, string AsrtenNoofPc, string Magnesium, string N2DeGassingTime, string Gr530, string CoverAlFlux, string RejectionNo, int MetalgradId, string Atb, string Atbqty, ref string errorDesc);

        [OperationContract]
        int DailyFoundlyProductionone_Edit(int FqId1, string HeatNo, string AlloyIngotWeight, string AlloyIngotPcs, string RejectionWeight, string ReasonForRejection, string RiserWeight, string TurningWeight, string PouringEndTime, string MetalTemp, string AtbrenorFive, string AsrtenNoofPc, string Magnesium, string N2DeGassingTime, string Gr530, string CoverAlFlux, string RejectionNo, int MetalgradId, string Atb, string Atbqty, ref string errorDesc);

        [OperationContract]
        List<DailyFoundryproductionone> DailyFoundryproductionone_GetAll(int FqId1, int FpId);


        [OperationContract]
        int DailyFoundlyProductiontwo_AddNew(int FpId, string HeatNo, string InsertCorner, int ItemNo, string NoofPcs, string WeightInKg, string RejectionPcs, string No, string Reason, ref string errorDesc);


        [OperationContract]
        int DailyFoundlyProductiontwo_Edit(int FqId2, string HeatNo, string InsertCorner, int ItemNo, string NoofPcs, string WeightInKg, string RejectionPcs, string No, string Reason, ref string errorDesc);

        [OperationContract]
        List<DailyFoundryproductiontwo> DailyFoundryproductiontwo_GetAll(int FqId2, int FpId);

        [OperationContract]
        int DailyFoundlyProductionthree_AddNew(int FpId, string HeatNo, string DgasStartTime, string DgasEndTime, ref string errorDesc);

        [OperationContract]
        int DailyFoundlyProductionthree_Edit(int Id, string HeatNo, string DgasStartTime, string DgasEndTime, ref string errorDesc);

        [OperationContract]
        List<DailyFoundryproductionthree> DailyFoundryproductionthree_GetAll(int Id, int FpId);
    }
    #endregion





    #region cncmachine
    [ServiceContract]
    public interface Icncmachine
    {
        [OperationContract]
        int Cncmachine_AddNew(string DocNo, string MetalType, DateTime Date, int dayShift, int NightShift, ref int Cmpid, int MachinMasterId, ref string errorDesc);

        [OperationContract]
        int Cncmachine_Edit(int CncId, string DocNo, string MetalType, DateTime Date, int dayShift, int NightShift, int MachinMasterId, ref string errorDesc);


        [OperationContract]
        int Cncmachineone_AddNew(int CncId, string TimeFromTo, int DrawingNo, string OperatorName, int JobTitle, string CycleTimeMachin, string CycleTimeClamp, string TotalTime, string TargetQuantity, string TargetActual, string Remarks, string RequiredDimensions, string RequiredDimensionstwo, string RequiredDimensionsthree, string ActualDimensions, string ReadingOpening, string ReadingClosing, string TotalReading, string TimeFromEnd, string CycleTotalTime, string RequiredDimensionsfour, string RequiredDimensionsfive, string ActualDimensionstwo, string ActualDimensionsthree, string ActualDimensionsfour, string ActualDimensionsfive, ref string errorDesc);

        [OperationContract]
        int Cncmachineone_Edit(int CncId1, string TimeFromTo, int DrawingNo, string OperatorName, int JobTitle, string CycleTimeMachin, string CycleTimeClamp, string TotalTime, string TargetQuantity, string TargetActual, string Remarks, string RequiredDimensions, string RequiredDimensionstwo, string RequiredDimensionsthree, string ActualDimensions, string ReadingOpening, string ReadingClosing, string TotalReading, string TimeFromEnd, string CycleTotalTime, string RequiredDimensionsfour, string RequiredDimensionsfive, string ActualDimensionstwo, string ActualDimensionsthree, string ActualDimensionsfour, string ActualDimensionsfive, ref string errorDesc);


        [OperationContract]
        int Cncmachinetwo_AddNew(int CncId, string ToolType, string InsertCorner, string Insert, string Make, string Reason, ref string errorDesc);


        [OperationContract]
        int Cncmachinetwo_Edit(int CncId2, string ToolType, string InsertCorner, string Insert, string Make, string Reason, ref string errorDesc);


        [OperationContract]
        List<CncMachinProduction> CncMachinProduction_GetAll(int CncId);

        [OperationContract]
        List<CncMachinProductionOne> CncMachinProductionOne_GetAll(int CncId1, int CncId);

        [OperationContract]
        List<CncMachinProductiontwo> CncMachinProductiontwo_GetAll(int CncId2, int CncId);
    }
    #endregion



    #region Heattreatment
    [ServiceContract]
    public interface IHeattreatment
    {
        [OperationContract]
        int HeatTreatment_AddNew(string DocNo, int Metaltype, DateTime Date, string DrawingNo, string Noofpcs, string wtg, string Typeofcycle, string Tempsetting, string Sokinghour, string SokingMinutes, string Startcycle, string Finishcycle, string TotalHours, string Quenchingtypeof, string Remarks, ref string errorDesc);


        [OperationContract]
        int HeatTreatment_EditNew(int HeatId, string DocNo, int Metaltype, DateTime Date, string DrawingNo, string Noofpcs, string wtg, string Typeofcycle, string Tempsetting, string Sokinghour, string SokingMinutes, string Startcycle, string Finishcycle, string TotalHours, string Quenchingtypeof, string Remarks, ref string errorDesc);


        [OperationContract]
        List<HeatTreatment> HeatTreatment_GetAll(int HeatId);
    }
    #endregion




    #region Hardness
    [ServiceContract]
    public interface IHardness
    {
        [OperationContract]
        int Hardness_AddNew(string DocNo, int MetalType, DateTime Date, string TypeofTretmentHt, string TypeofTretmentCast, string MateriyalGrade, int DrawingNo, string LotQty, string Remarks, ref int HrId, ref string errorDesc);

        [OperationContract]
        int Hardness_EditNew(int HrId, string DocNo, int MetalType, DateTime Date, string TypeofTretmentHt, string TypeofTretmentCast, string MateriyalGrade, int DrawingNo, string LotQty, string Remarks, ref string errorDesc);
        [OperationContract]
        int HardnessLotQty_AddNew(string PerLotQty, string HardnesObtain, int HrId, ref string errorDesc);
        [OperationContract]
        int HardnessLotQty_Edit(int HlId, string PerLotQty, string HardnesObtain, ref string errorDesc);

        [OperationContract]
        List<HardnessRecord> HardnessRecord_GetAll(int HrId);

        [OperationContract]
        List<HardnessLotQty> HardnessLotQty_GetAll(int HlId, int HrId);
    }
    #endregion




    #region anodiszing
    [ServiceContract]
    public interface Ianodiszing
    {
        [OperationContract]
        int Anodiszing_AddNew(int Metaltype, DateTime Date, string Aluwire, string Titaniumbolts, string Dmwater, string SulphuricAcid, string Nitricacid, string CausticSoda, string Starttimeofchillingplant, string StartEnergyreading, string CloseEnergyreading, ref int Anodiszingid, ref string errorDesc);

        [OperationContract]
        int Anodiszingone_AddNew(int Anodiszingid, string StartTime, string FinishTime, string Temp, string Qty, string WeightPerPices, string ThicknessMicron, string OkPices, string Rework, string Remark, ref string errorDesc);
        [OperationContract]
        int Anodiszingone_Edit(int Anodiszingidone, string StartTime, string FinishTime, string Temp, string Qty, string WeightPerPices, string ThicknessMicron, string OkPices, string Rework, string Remark, ref string errorDesc);
        [OperationContract]
        int Anodiszing_Edit(int Anodiszingid, int Metaltype, DateTime Date, string Aluwire, string Titaniumbolts, string Dmwater, string SulphuricAcid, string Nitricacid, string CausticSoda, string Starttimeofchillingplant, string StartEnergyreading, string CloseEnergyreading, ref string errorDesc);

        [OperationContract]
        List<Anodiszing> Anodiszing_GetAlll(int Anodiszingid);

        [OperationContract]
        List<Anodiszingone> Anodiszingone_GetAll(int Anodiszingidone, int Anodiszingid);
    }
    #endregion





    #region Galvaniz
    [ServiceContract]
    public interface IGalvaniz
    {
        [OperationContract]
        int Galvaniz_AddNew(string DocNo, int MetalType, DateTime Date, string furancestarttime, string furancemelttime, string stoptime, string tempwhenstartrts, string tempwhenmelt, string tempwhenstops, string energymtroread, string energymtrmeltread, string cread, ref int GalvanizId, ref string errorDesc);

        [OperationContract]
        int Galvaniz_Edit(int GalvanizId, string DocNo, int MetalType, DateTime Date, string furancestarttime, string furancemelttime, string stoptime, string tempwhenstartrts, string tempwhenmelt, string tempwhenstops, string energymtroread, string energymtrmeltread, string cread, ref string errorDesc);

        [OperationContract]
        List<Galvaniz> Galvaniz_GetAll(int GalvanizId);

        [OperationContract]
        int Galvanizproduction_AddNew(int DrawingNo, string Qty, string mcweight, string glweight, string coatingthickness, int GalvanizId, ref string errorDesc);

        [OperationContract]
        int Galvanizproduction_Edit(int GalvanizproductId, int DrawingNo, string Qty, string mcweight, string glweight, string coatingthickness, ref string errorDesc);

        [OperationContract]
        List<production> production_GetAll(int GalvanizproductId, int GalvanizId);


        [OperationContract]
        int Galvanizbreckdown_AddNew(int GalvanizId, string Starttime, string StopTime, string Reason, string partchange, ref string errorDesc);

        [OperationContract]
        int Galvanizbreckdown_Edit(int GalvanizbreakkId, string Starttime, string StopTime, string Reason, string partchange, ref string errorDesc);

        [OperationContract]
        List<breckdown> breckdown_GetAll(int GalvanizbreakkId, int GalvanizId);


        [OperationContract]
        int materialstock_AddNew(int GalvanizId, string Itemname, string received, string issue, ref string errorDesc);

        [OperationContract]
        int materialstock_Edit(int GalvanizMaterialId, string Itemname, string received, string issue, ref string errorDesc);

        [OperationContract]
        List<materiyalstock> materiyalstock_GetAll(int GalvanizMaterialId, int GalvanizId);
    }
    #endregion





    #region userreight
    [ServiceContract]
    public interface Iuserreight
    {
        [OperationContract]
        int Userreight_AddNew(int EmployId, string ItemTypeMaster, string MetalMaster, string MetalGradeMaster, string ShiftMaster, string ProductionUnitMaster, string StageProcessMaster, string RejectionReasonMaster, string ItemMaster, string CustomerMaster, string EmployeeMaster, string VendorMaster, string ChangePassword, string HeatTreatment, string DailyFoundryProduction, string MeltingPlanning, string MaterialPurchaseInward, string OrderIRNForProductionPlaning, string OtherMetalIssue, string FuranceLogSheet, string CastingHardness, string RejectionEntry, string DisposalEntry, string DespatchEntry, string IRNforProductionPlaning, string IRNeightCastingHardness, string IRNoneFurnaceLogSheet, string IRNtwoFurnaceLogSheet, string IRNsixPageone, string IRNsixPagetwo, string IRNnineRejectionEntry, string DailyProductionSummary, string materialIssue, string IrnsevenDailyItemSummary, string CastingMonth, string DespatchReport, string MonthStocktotalUnit, ref string errorDesc);


        [OperationContract]
        int Userreight_EditNew(int Id, int EmployId, string ItemTypeMaster, string MetalMaster, string MetalGradeMaster, string ShiftMaster, string ProductionUnitMaster, string StageProcessMaster, string RejectionReasonMaster, string ItemMaster, string CustomerMaster, string EmployeeMaster, string VendorMaster, string ChangePassword, string HeatTreatment, string DailyFoundryProduction, string MeltingPlanning, string MaterialPurchaseInward, string OrderIRNForProductionPlaning, string OtherMetalIssue, string FuranceLogSheet, string CastingHardness, string RejectionEntry, string DisposalEntry, string DespatchEntry, string IRNforProductionPlaning, string IRNeightCastingHardness, string IRNoneFurnaceLogSheet, string IRNtwoFurnaceLogSheet, string IRNsixPageone, string IRNsixPagetwo, string IRNnineRejectionEntry, string DailyProductionSummary, string materialIssue, string IrnsevenDailyItemSummary, string CastingMonth, string DespatchReport, string MonthStocktotalUnit, ref string errorDesc);


        [OperationContract]
        List<UserRight> UserRight_GetAll(int EmployId);

        [OperationContract]
        List<UserRight> UserRight_GetAlluser(int Id);

    }
    #endregion


    #region Machinetype
    [ServiceContract]
    public interface IMachineTypeMaster
    {
        [OperationContract]
        int MachinTypeMaster_AddNew(string MachineType, ref string errorDesc);

        [OperationContract]
        int MachinTypeMaster_Edit(int Id, string MachineType, ref string errorDesc);

        [OperationContract]
        List<MachinTypeMaster> MachinTypeMaster_GetAll(int Id);
    }
    #endregion


    #region MachineMaster
    [ServiceContract]
    public interface IMachineMaster
    {
        [OperationContract]
        int MachinMaster_AddNew(int MachinTypeId, string MachinName, ref string errorDesc);

        [OperationContract]
        int MachinMaster_Edit(int Id, int MachinTypeId, string MachinName, ref string errorDesc);

        [OperationContract]
        List<MachinMaster> MachinMaster_GetAll(int Id);
    }
    #endregion

    #region DrawingItemMaster
    [ServiceContract]
    public interface IDrawingItemMaster
    {
        [OperationContract]
        int DrawingItemMaster_AddNew(int ItemId, int MachinMasterId, int StageProcessId, string MachineTime, string ClampintTime, ref string errorDesc);

        [OperationContract]
        int DrawingItemMaster_Edit(int Id, int ItemId, int MachinMasterId, int StageProcessId, string MachineTime, string ClampintTime, ref string errorDesc);

        [OperationContract]
        List<DrawingItemMaster> DrawingItemMaster_GetAll(int Id);
    }
    #endregion


   
}
