Esempio n. 1
0
 public bool SaveStaffPro(int systemId, string companyId, string staffId, string staffName, string username, string password, string nickname, string headImgUrl, string name, int sex, DateTime birthDate, string birthPlace, string Identification, string education, string phone, string qq, string weixin, string email, string address, decimal wages, int probation, DateTime startWorkDate, DateTime endWorkDate, DateTime signContractDate, DateTime expirationContractDate, string departmentId, string positionId, string storeId, string warehouseId, string Description, bool State)
 {
     try
     {
         int    errCode = -1;
         string errMsg  = "fail";
         var    result  = CTMSContext.SP_Add_Institution_Staff(systemId, companyId, staffId, staffName, username, password, nickname, headImgUrl, name, sex, birthDate, birthPlace, Identification, education, phone, qq, weixin, email, address, wages, probation, startWorkDate, endWorkDate, signContractDate, expirationContractDate, departmentId, positionId, storeId, warehouseId, Description, State, out errCode, out errMsg);
         if (errCode != 0)
         {
             throw new Exception(errMsg);
         }
         return(errCode == 0 ? true : false);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }