Пример #1
0
        internal static string GetLastID()
        {
            long rr = (long)Table_Adapter_Protector.ScalarQuery_GetLast_ProtectorID_Func();

            string id = rr.ToString();

            return(id);
        }
Пример #2
0
        internal static CustomersAndAgents_DataSet_appData.ProtectorRow Get_Protector_Row(long OrignalProtectoriD)
        {
            CustomersAndAgents_DataSet_appData ds = new CustomersAndAgents_DataSet_appData();


            Table_Adapter_Protector.FillBy_Protector_RowBy_Protectorid_StoreProcedure(ds.Protector, OrignalProtectoriD);

            var gg = (from o in ds.Protector
                      where (o.PROTECTOR_ID == OrignalProtectoriD)
                      select o).FirstOrDefault();

            return(gg);
        }
Пример #3
0
 internal static void Update_ProtectorInfo(long customerid, string profession, string country, decimal charges, decimal payable, DateTime PassportSendingDate, DateTime PassportRecievingDate, decimal profit, long OrignalProtectorId)
 {
     Table_Adapter_Protector.UpdateQuery_Protector_Info_By_ProtectoriD_Func(customerid, profession, country, charges, payable, PassportSendingDate, PassportRecievingDate, profit, OrignalProtectorId);
 }
Пример #4
0
 internal static void NewProtectorInsert(long customerid, string profession, string country, decimal charges, decimal payable, DateTime PassportSendingDate, DateTime PassportRecievingDate, decimal profit)
 {
     Table_Adapter_Protector.Insert(customerid, profession, country, charges, payable, PassportSendingDate, PassportRecievingDate, profit);
 }